git-rename-remote1
Rename a remote
Usage
git-rename-remote <old-remote-name>
<new-remote-name>
Overview
Rename a git remote regardless of name conflict, and then list current git remotes
Options
<old-remote-name>
The name of the remote you want to rename.
<new-remote-name>
The new name of the remote.
Examples
$ git remote -v origin [email protected]:myuser/foo.git (fetch) origin [email protected]:myuser/foo.git (push) upstream [email protected]:myuser/bar.git (fetch) upstream [email protected]:myuser/bar.git (push) $ git-rename-remote upstream origin origin [email protected]:myuser/bar.git (fetch) origin [email protected]:myuser/bar.git (push)
Releases
3 releases since Debian 11 (Bullseye); the text changed 2 times.