Difference between revisions of "Git command summary"
Jump to navigation
Jump to search
m |
m |
||
| Line 2: | Line 2: | ||
===Create branch=== | ===Create branch=== | ||
| − | '''git branch''' branch-name | + | '''git branch''' ''branch-name'' |
===Display branches=== | ===Display branches=== | ||
| Line 12: | Line 12: | ||
==Committing== | ==Committing== | ||
===Commit=== | ===Commit=== | ||
| − | '''git commit -m "'''Commit message goes here.'''"''' | + | '''git commit -m "'''''Commit message goes here.'''''"''' |
===Push=== | ===Push=== | ||
Revision as of 11:06, 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