Difference between revisions of "Linux command: git"
Jump to navigation
Jump to search
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 ==...") |
Rafahsolis (talk | contribs) |
||
| Line 14: | Line 14: | ||
== Undo last changes == | == Undo last changes == | ||
git checkout -- . | git checkout -- . | ||
| + | |||
| + | == add remote == | ||
| + | git remote add <repository_name> <repository_path> | ||
| + | |||
| + | == list remote == | ||
| + | git remote -v | ||
| + | |||
| + | == remove remote == | ||
| + | git rm <repository_name> | ||
Revision as of 03:46, 27 March 2015
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 -- .
add remote
git remote add <repository_name> <repository_path>
list remote
git remote -v
remove remote
git rm <repository_name>