git-rename-remote man page

git-rename-remote ā€” Rename a remote

Synopsis

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

Description

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  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)

Author

Written by timfeirg <kkcocogogo@gmail.com>

Reporting Bugs

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

See Also

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

Referenced By

git-extras(1).

May 2019 Git Extras