Fix typo and move 'git remote rename' location
This commit is contained in:
parent
e6ebf98669
commit
6321e126bb
@ -111,26 +111,6 @@ origin git@github.com:github/git-reference.git (push)
|
||||
<b>$ git remote -v</b>
|
||||
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'
|
||||
@ -164,13 +144,33 @@ origin git://github.com/pjhyett/hw.git (push)
|
||||
<b>$ git remote -v</b>
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user