1
0
Fork 0

Fix typo and move 'git remote rename' location

This commit is contained in:
Robert Djurasaj 2013-02-07 16:51:31 -07:00
parent e6ebf98669
commit 6321e126bb
1 changed files with 21 additions and 21 deletions

View File

@ -111,26 +111,6 @@ origin git@github.com:github/git-reference.git (push)
<b>$ git remote -v</b> <b>$ git remote -v</b>
github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (fetch)
github git@github.com:schacon/hw.git (push) 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> </pre>
<p>Like the branch naming, remote alias names are arbitrary - just as 'master' <p>Like the branch naming, remote alias names are arbitrary - just as 'master'
@ -164,13 +144,33 @@ origin git://github.com/pjhyett/hw.git (push)
<b>$ git remote -v</b> <b>$ git remote -v</b>
github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (fetch)
github git@github.com:schacon/hw.git (push) 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> </pre>
<p class="nutshell"> <p class="nutshell">
<b>In a nutshell</b> with <code>git remote</code> you can list our <b>In a nutshell</b> with <code>git remote</code> you can list our
remote repositories and whatever URL remote repositories and whatever URL
that repository is using. You can use <code>git remote add</code> to 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> </p>
<h4> <h4>