git:git_cheatsheet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
git:git_cheatsheet [2015/01/25 17:11] – deva | git:git_cheatsheet [2015/02/24 17:50] – deva | ||
---|---|---|---|
Line 83: | Line 83: | ||
< | < | ||
git branch | git branch | ||
+ | </ | ||
+ | |||
+ | ====Create branch==== | ||
+ | Create and switch to: | ||
+ | < | ||
+ | git checkout -b [branchname] | ||
+ | </ | ||
+ | |||
+ | Just create: | ||
+ | < | ||
+ | git branch [branchname] | ||
</ | </ | ||
Line 90: | Line 101: | ||
</ | </ | ||
+ | ====Delete branch==== | ||
+ | < | ||
+ | git branch -d branchname | ||
+ | git push origin --delete branchname | ||
+ | </ | ||
=====CVS 2 GIT===== | =====CVS 2 GIT===== |
git/git_cheatsheet.txt · Last modified: 2017/02/21 20:20 by deva