diff --git a/remotes/index.html b/remotes/index.html index 8e24cbc..7815353 100644 --- a/remotes/index.html +++ b/remotes/index.html @@ -111,26 +111,6 @@ origin git@github.com:github/git-reference.git (push) $ git remote -v github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) - - -
If you want to rename remote aliases without having to delete them and add them again
- you can do that by running git remote rename [old-alias] [new-alias]
. This will
- allow you to modify current name of the remote.
-$ git remote add github git@github.com:schacon/hw.git -$ git remote -v -github git@github.com:schacon/hw.git (fetch) -github git@github.com:schacon/hw.git (push) -$ git remote rename github origin -$ git remote -v -origin git@github.com:schacon/hw.git (fetch) -origin git@github.com:schacon/hw.git (push)
Like the branch naming, remote alias names are arbitrary - just as 'master' @@ -164,13 +144,33 @@ origin git://github.com/pjhyett/hw.git (push) $ git remote -v github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) + + +
If you want to rename remote aliases without having to delete them and add them again
+ you can do that by running git remote rename [old-alias] [new-alias]
. This will
+ allow you to modify the current name of the remote.
+$ git remote add github git@github.com:schacon/hw.git +$ git remote -v +github git@github.com:schacon/hw.git (fetch) +github git@github.com:schacon/hw.git (push) +$ git remote rename github origin +$ git remote -v +origin git@github.com:schacon/hw.git (fetch) +origin git@github.com:schacon/hw.git (push)
In a nutshell with git remote
you can list our
remote repositories and whatever URL
that repository is using. You can use git remote add
to
- add new remotes and git remote rm
to delete existing ones.
+ add new remotes, git remote rm
to delete existing ones or git remote rename [old-alias] [new-alias]
to rename them.