git:git_cheatsheet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
git:git_cheatsheet [2015/02/22 13:59] – deva | git:git_cheatsheet [2015/04/10 10:43] – [Delete branch] deva | ||
---|---|---|---|
Line 85: | Line 85: | ||
</ | </ | ||
+ | ====Create branch==== | ||
+ | Create and switch to: | ||
+ | < | ||
+ | git checkout -b [branchname] | ||
+ | </ | ||
+ | |||
+ | Just create: | ||
+ | < | ||
+ | git branch [branchname] | ||
+ | </ | ||
+ | |||
+ | Push to server: | ||
+ | < | ||
+ | git push -u origin [branchname] | ||
+ | </ | ||
====Switch to branch==== | ====Switch to branch==== | ||
< | < | ||
Line 96: | Line 111: | ||
</ | </ | ||
+ | ====Fecth branches from server==== | ||
+ | < | ||
+ | git fetch --all | ||
+ | </ | ||
=====CVS 2 GIT===== | =====CVS 2 GIT===== | ||
< | < |
git/git_cheatsheet.txt · Last modified: 2017/02/21 20:20 by deva