Linux command: git

From RHS Wiki
Revision as of 03:44, 27 March 2015 by Rafahsolis (talk | contribs) (Created page with "== Clone == git clone <repository_path> == add/commit/push == git add . git add -a git add -A git commit -m "Message of commit" git push origin master == Branching ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Clone

git clone <repository_path>

add/commit/push

git add .
git add -a
git add -A
git commit -m "Message of commit"
git push origin master

Branching

git checkout <branch_name>
git merge

Undo last changes

git checkout -- .