User Tools

Site Tools


info:code:git
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

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
info:code:git [2017-09-07 21:00]
andunix
info:code:git [2018-12-06 10:07] (current)
andunix
Line 14: Line 14:
 === Switch Branch === === Switch Branch ===
   git checkout BRANCH   git checkout BRANCH
 +=== Delete Branch ===
 +  git branch -d BRANCH
 +=== Delete Remote Branch ===
 +  git push origin -d BRANCH
 +=== List unmerges branches ===
 +List branches with commits, which are not in branch REF:
 +  git branch --no-merged REF
 +For example, list unmerged branches, which are not in ''develop'':
 +  git branch --no-merged develop
 +=== List unmerges commits ===
 +List commits in branch BRANCH, which are not in branch REF:
 +  git cherry -v REF BRANCH
 +For example, list commits in a feature branch, which are not in ''develop'':
 +  git cherry -v develop feature/FEATURE
 ===== Subversion ===== ===== Subversion =====
 === Update === === Update ===
info/code/git.1504818037.txt.gz · Last modified: 2017-09-07 21:00 by andunix