Difference between revisions of "Git command summary"
Jump to navigation
Jump to search
m |
m |
||
| Line 8: | Line 8: | ||
===Switch branch=== | ===Switch branch=== | ||
| − | '''git checkout''' branch-name | + | '''git checkout''' ''branch-name'' |
==Committing== | ==Committing== | ||
Revision as of 11:07, 14 February 2017
Branching
Create branch
git branch branch-name
Display branches
git branch
Switch branch
git checkout branch-name
Committing
Commit
git commit -m "Commit message goes here."
Push
git push