Difference between revisions of "Linux command: git"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 19: | Line 19: | ||
== list remote == | == list remote == | ||
git remote -v | git remote -v | ||
| + | |||
| + | == Modify remote url == | ||
| + | git remote set-url origin <new url>/OTHERREPOSITORY.git | ||
== remove remote == | == remove remote == | ||
Revision as of 11:16, 8 April 2015
Clone
git clone <repository_path>
add/commit/push
git add . 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
Modify remote url
git remote set-url origin <new url>/OTHERREPOSITORY.git
remove remote
git rm <repository_name>
pull/push
git push <repository_name> git pull <repository_name>