Difference between revisions of "Git command summary"
Jump to navigation
Jump to search
m |
m |
||
| Line 3: | Line 3: | ||
===Create branch=== | ===Create branch=== | ||
'''git branch''' branch-name | '''git branch''' branch-name | ||
| + | |||
| + | ===Display branches=== | ||
| + | '''git branch''' | ||
| + | |||
| + | ===Switch branch=== | ||
| + | '''git checkout''' branch-name | ||
[[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]] | [[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]] | ||
Revision as of 10:46, 13 February 2017
Branching
Create branch
git branch branch-name
Display branches
git branch
Switch branch
git checkout branch-name