diff options
author | Robert Djurasaj <robert.djurasaj@gmail.com> | 2013-02-08 03:51:31 +0400 |
---|---|---|
committer | Robert Djurasaj <robert.djurasaj@gmail.com> | 2013-02-08 03:51:31 +0400 |
commit | 6321e126bbf071cf8ea92092f4f134902e417779 (patch) | |
tree | 7d3bd7b0315f98f1262274dcf50cbd330b4143d6 | |
parent | e6ebf986696d7bfd5dc150daccf74bf7c6e5bb23 (diff) |
Fix typo and move 'git remote rename' location
-rw-r--r-- | remotes/index.html | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/remotes/index.html b/remotes/index.html index 8e24cbc..7815353 100644 --- a/remotes/index.html +++ b/remotes/index.html @@ -113,26 +113,6 @@ github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) </pre> - <h4> - git remote rename [old-alias] [new-alias] - <small>rename remote aliases</small> - </h4> - - <p>If you want to rename remote aliases without having to delete them and add them again - you can do that by running <code>git remote rename [old-alias] [new-alias]</code>. This will - allow you to modify current name of the remote.</p> - -<pre> -<b>$ git remote add github git@github.com:schacon/hw.git</b> -<b>$ git remote -v</b> -github git@github.com:schacon/hw.git (fetch) -github git@github.com:schacon/hw.git (push) -<b>$ git remote rename github origin</b> -<b>$ git remote -v</b> -origin git@github.com:schacon/hw.git (fetch) -origin git@github.com:schacon/hw.git (push) -</pre> - <p>Like the branch naming, remote alias names are arbitrary - just as 'master' has no special meaning but is widely used because <code>git init</code> sets it up by default, 'origin' is often used as a remote name because @@ -166,11 +146,31 @@ github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) </pre> + <h4> + git remote rename [old-alias] [new-alias] + <small>rename remote aliases</small> + </h4> + + <p>If you want to rename remote aliases without having to delete them and add them again + you can do that by running <code>git remote rename [old-alias] [new-alias]</code>. This will + allow you to modify the current name of the remote.</p> + +<pre> +<b>$ git remote add github git@github.com:schacon/hw.git</b> +<b>$ git remote -v</b> +github git@github.com:schacon/hw.git (fetch) +github git@github.com:schacon/hw.git (push) +<b>$ git remote rename github origin</b> +<b>$ git remote -v</b> +origin git@github.com:schacon/hw.git (fetch) +origin git@github.com:schacon/hw.git (push) +</pre> + <p class="nutshell"> <b>In a nutshell</b> with <code>git remote</code> you can list our remote repositories and whatever URL that repository is using. You can use <code>git remote add</code> to - add new remotes and <code>git remote rm</code> to delete existing ones. + add new remotes, <code>git remote rm</code> to delete existing ones or <code>git remote rename [old-alias] [new-alias]</code> to rename them. </p> <h4> |