User Tools

Site Tools


notes:tools:git

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
notes:tools:git [2019/01/30]
leszek [Git]
notes:tools:git [2019/02/21] (current)
leszek [Branching]
Line 161: Line 161:
 git push origin HEAD:<​remote_branch_name>​ # push the current local branch and give it a new remote branch name git push origin HEAD:<​remote_branch_name>​ # push the current local branch and give it a new remote branch name
                                        # this creates a new remote branch                                        # this creates a new remote branch
 +</​code>​
 +
 +After creating a new branch you may want to push it to the remote and set the upsteam:
 +<code text>
 +git push origin <​branch_name>​
 +git push --set-upstream <​remote_name>​ <​branch_name>​ # remote name is usually '​origin'​
 </​code>​ </​code>​
  
notes/tools/git.txt ยท Last modified: 2019/02/21 by leszek