Fix typo and move 'git remote rename' location
Robert Djurasaj committed
Feb 7, 2013 at 16:51 UTC
6321e126bbf071cf8ea92092f4f134902e417779
1 file changed
+21
-21
remotes/index.html
+21
-21
@@ -111,26 +111,6 @@ origin git@github.com:github/git-reference.git (push)
111
<b>$ git remote -v</b>
112
github git@github.com:schacon/hw.git (fetch)
113
github git@github.com:schacon/hw.git (push)
114
-</pre>
115
-
116
- <h4>
117
- git remote rename [old-alias] [new-alias]
118
- <small>rename remote aliases</small>
119
- </h4>
120
-
121
- <p>If you want to rename remote aliases without having to delete them and add them again
122
- you can do that by running <code>git remote rename [old-alias] [new-alias]</code>. This will
123
- allow you to modify current name of the remote.</p>
124
-
125
-<pre>
126
-<b>$ git remote add github git@github.com:schacon/hw.git</b>
127
-<b>$ git remote -v</b>
128
-github git@github.com:schacon/hw.git (fetch)
129
-github git@github.com:schacon/hw.git (push)
130
-<b>$ git remote rename github origin</b>
131
-<b>$ git remote -v</b>
132
-origin git@github.com:schacon/hw.git (fetch)
133
-origin git@github.com:schacon/hw.git (push)
114
</pre>
115
116
<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)
144
<b>$ git remote -v</b>
145
github git@github.com:schacon/hw.git (fetch)
146
github git@github.com:schacon/hw.git (push)
147
+</pre>
148
+
149
+ <h4>
150
+ git remote rename [old-alias] [new-alias]
151
+ <small>rename remote aliases</small>
152
+ </h4>
153
+
154
+ <p>If you want to rename remote aliases without having to delete them and add them again
155
+ you can do that by running <code>git remote rename [old-alias] [new-alias]</code>. This will
156
+ allow you to modify the current name of the remote.</p>
157
+
158
+<pre>
159
+<b>$ git remote add github git@github.com:schacon/hw.git</b>
160
+<b>$ git remote -v</b>
161
+github git@github.com:schacon/hw.git (fetch)
162
+github git@github.com:schacon/hw.git (push)
163
+<b>$ git remote rename github origin</b>
164
+<b>$ git remote -v</b>
165
+origin git@github.com:schacon/hw.git (fetch)
166
+origin git@github.com:schacon/hw.git (push)
167
</pre>
168
169
<p class="nutshell">
170
<b>In a nutshell</b> with <code>git remote</code> you can list our
171
remote repositories and whatever URL
172
that repository is using. You can use <code>git remote add</code> to
173
- add new remotes and <code>git remote rm</code> to delete existing ones.
173
+ 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.
174
</p>
175
176
<h4>