Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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>
  
git.txt · Last modified: 2014/10/28 17:55 by dlicious
 
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki