User Tools

Site 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
Next revision
Previous revision
git [2016/06/16 12:26]
javapimp
git [2016/06/16 12:29]
javapimp [Delete a remote branch]
Line 6: Line 6:
  
 ==== Create a new branch from current changes ==== ==== Create a new branch from current changes ====
 +
 +This will create the new branch. When the branch is created, it will be active with the changes from the old branch. Switching back to the old branch will no longer show the changes.
  
 <​code>​ <​code>​
Line 32: Line 34:
 To git@github.com:<​repository>​.git To git@github.com:<​repository>​.git
  - [deleted] ​        <​branchName>​  - [deleted] ​        <​branchName>​
 +</​code>​
 +
 +If someone already deleted the remote branch, synchronize your local branch list with:
 +
 +<​code>​
 +$ git fetch --prune
 </​code>​ </​code>​
  
git.txt ยท Last modified: 2016/06/16 12:29 by javapimp