Skip to content

Instantly share code, notes, and snippets.

@janecakemaster
Created February 13, 2014 03:29
Show Gist options
  • Save janecakemaster/8969268 to your computer and use it in GitHub Desktop.
Save janecakemaster/8969268 to your computer and use it in GitHub Desktop.
1. Create new branch and checkout branch
`git checkout -b <name_of_branch>`
2. Make changes
3. Stage changes
`git add <filename>` to add `<filename>`
`git add -A .` to add all your changes and remove files
4. Commit changes (often). You can reference or 'fix' a bug by saying "Fixes #<issue_number>"
`git commit -m "This is a commit message."`
5. After you're done committing all your changes, merge master and push.
```
> git merge master
// resolve merge conflicts if any
> git push origin <name_of_branch>
```
6. Go to GitHub and submit pull request with detailed description and screenshots of your changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment