Created
August 26, 2013 20:10
-
-
Save denishaskin/6346053 to your computer and use it in GitHub Desktop.
git workflow notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout develop # all developer work is off of this branch | |
git pull --rebase # make sure local develop is up-to-date (can this be git rebase?) | |
git checkout -b my-nifty-feature-559876 # create your feature branch; I like to put Pivotal story ID in it for convenience; not required | |
# do your work, make sure all tests still pass, etc. COMMIT FREQUENTLY | |
git commit -m "First part of my nifty feature working; now on to the back-end." | |
# After every commit, rebase from develop. Will show conflicts early. Keep your local branches up-to-date with remote. | |
git pull --rebase # can this be git rebase? | |
# repeat above 2 frequently as you're working | |
# when you're done, pull and rebase one last time, make sure tests pass, then final commit with Pivotal comment | |
git commit -m "It works! [Fixes #559876]" # commit when done. Include comment like that for Pivotal integration | |
git checkout develop # switch back to develop | |
git merge --no-ff my-nifty-feature-559876 # I'm not sure the --no-ff is needed any more, with rebasing | |
git push origin develop # send to github | |
git branch -d my-nifty-feature-559876 # you can get rid of your feature branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment