From 779407e76ff3cb439f27d1ae5510acba848c2676 Mon Sep 17 00:00:00 2001 From: "Jorge A. Borges" Date: Mon, 30 Mar 2015 22:45:48 +1100 Subject: [PATCH] Add git remote --- pages/common/git-remote.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/git-remote.md diff --git a/pages/common/git-remote.md b/pages/common/git-remote.md new file mode 100644 index 000000000..e9efdbc6f --- /dev/null +++ b/pages/common/git-remote.md @@ -0,0 +1,23 @@ +#git remote + +> Manage set of tracked repositories (“remotes”) + +- Show a list of existing remotes, their names and URL + +`git remote -v` + +- Add a remote + +`git remote add {{remote_name}} {{remote_url}}` + +- Add a remote and run fetch on it + +`git remote add -f {{remote_name}} {{remote_url}}` + +- Remove a remote + +`git remote remove {{remote_name}}` + +- Rename a remote + +`git remote rename {{old_name}} {{new_name}}`