- Create a branch for the feature you will be working on and switch to it
git branch myname-feature-name
git checkout myname-feature-name
-
work on your feature, add commit, etc
-
Open a pull request to merge your branch back into master
git push origin myname-feature-name
- open pull request from repo page on github.com
After a pull request has been merged we'll need to get our local git repository in sync with our remote
-
Make sure you've commited any changes on your branch
-
switch to the master branch
git checkout master -
get your master branch up to speed with the remote
git pull origin master -
switch back to your branch
git checkout myname-feature-name -
merge the new changes
git merge master
Thanks for formatting this so nicely Zach, I am referencing it in my sites internal coding standards :)