Skip to content

Commit a963c01

Browse files
authored
Merge pull request #851 from rpjday/remotes
Add that deleting a remote also deletes its config settings and remot…
2 parents a3eadc8 + dccce3a commit a963c01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/02-git-basics/sections/remotes.asc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ $ git remote show origin
192192
This command shows which branch is automatically pushed to when you run `git push` while on certain branches.
193193
It also shows you which remote branches on the server you don't yet have, which remote branches you have that have been removed from the server, and multiple local branches that are able to merge automatically with their remote-tracking branch when you run `git pull`.
194194

195-
==== Removing and Renaming Remotes
195+
==== Renaming and Removing Remotes
196196

197197
You can run `git remote rename` to change a remote's shortname.(((git commands, remote)))
198198
For instance, if you want to rename `pb` to `paul`, you can do so with `git remote rename`:
@@ -216,3 +216,5 @@ $ git remote remove paul
216216
$ git remote
217217
origin
218218
----
219+
220+
Once you delete the reference to a remote this way, all remote-tracking branches and configuration settings associated with that remote are also deleted.

0 commit comments

Comments
 (0)