git-rename-remote(1)

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.

  1. 11
  2. 12
  3. 13

Author

Written by timfeirg <[email protected]>

Reporting bugs

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

From git-extras 7.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.