This shows you the differences between two versions of the page.
git [2014/10/28 17:51] dlicious Added "miscellaneous workflow tips" section |
git [2014/10/28 17:55] (current) dlicious Minor improvement to remote branch section |
||
---|---|---|---|
Line 111: | Line 111: | ||
</code> | </code> | ||
- | === Push the new branch to our remote === | + | === Update branch remote configuration === |
+ | |||
+ | If you don't do this, the branch will continue to track the upstream remote (so if that's what you want, skip this step). | ||
<code> | <code> | ||
- | git push <remote> <newbranch>:<newbranch> | + | git branch --set-upstream <newbranch> <remote>/<newbranch> |
</code> | </code> | ||
- | === Update branch remote configuration === | + | === Push the new branch to our remote === |
- | + | ||
- | If you don't do this, the branch will continue to track the upstream remote. | + | |
<code> | <code> | ||
- | git branch --set-upstream <newbranch> <remote>/<newbranch> | + | git push <remote> <newbranch>:<newbranch> |
</code> | </code> | ||