DOKK / manpages / debian 12 / git-extras / git-rename-remote.1.en
GIT-RENAME-REMOTE(1) Git Extras GIT-RENAME-REMOTE(1)

git-rename-remote - Rename a remote

git-rename-remote <old-remote-name> <new-remote-name>

Rename a git remote regardless of name conflict, and then list current git remotes

<old-remote-name>

The name of the remote you want to rename.

<new-remote-name>

The new name of the remote.

$ git remote -v
origin	git@myserver.com:myuser/foo.git (fetch)
origin	git@myserver.com:myuser/foo.git (push)
upstream	git@myserver.com:myuser/bar.git (fetch)
upstream	git@myserver.com:myuser/bar.git (push)
$ git-rename-remote upstream origin
origin	git@myserver.com:myuser/bar.git (fetch)
origin	git@myserver.com:myuser/bar.git (push)

Written by timfeirg <kkcocogogo@gmail.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

October 2022