Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion book/02-git-basics/sections/remotes.asc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ $ git remote show origin
This command shows which branch is automatically pushed to when you run `git push` while on certain branches.
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`.

==== Removing and Renaming Remotes
==== Renaming and Removing Remotes

You can run `git remote rename` to change a remote's shortname.(((git commands, remote)))
For instance, if you want to rename `pb` to `paul`, you can do so with `git remote rename`:
Expand All @@ -216,3 +216,5 @@ $ git remote remove paul
$ git remote
origin
----

Once you delete the reference to a remote this way, all remote-tracking branches and configuration settings associated with that remote are also deleted.