Updated Typical Git Workflow (markdown)

bunnei 2014-06-13 09:40:31 -07:00
parent fd83c0dbf2
commit 1864dbbf0d

@ -18,7 +18,7 @@
* Push your new branch to origin if you'd like * Push your new branch to origin if you'd like
* `git push origin new-branch-name` * `git push origin new-branch-name`
**Scenario A: You did some work in your branch… Then, someone committed something to master that you want!** **Scenario A: You did some work in your branch... Then, someone committed something to `upstream/master` that you want!**
* Make sure you're on your branch * Make sure you're on your branch
* `git checkout new-branch-name` * `git checkout new-branch-name`
* Rebase upstream/master onto it. With the rebase, move all of your changes to the top, and put all of the new master changes immediately after where you branched from. The goal should be that the branch now appears as though you just created it, and then committed all of your new stuff. * Rebase upstream/master onto it. With the rebase, move all of your changes to the top, and put all of the new master changes immediately after where you branched from. The goal should be that the branch now appears as though you just created it, and then committed all of your new stuff.