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 revisionPrevious revision
Next revision
Previous revision
git [2016/06/16 12:24] javapimpgit [2023/08/18 18:15] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Git Cheat Sheet ====== ====== Git Cheat Sheet ======
  
 +These are the commands that I look up the most to make sure I'm doing them right. Eventually I'll remember them...
  
 ===== Branches ===== ===== Branches =====
  
 ==== 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 31: 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.1466079884.txt.gz · Last modified: 2023/08/18 18:15 (external edit)