GIT-RENAME-REMOTE(1)
π GIT-RENAME-REMOTE(1) π
okay bestie, so this is a page from the Git Extras manual β it's GIT-RENAME-REMOTE(1), and yes it does exactly what it says on the tin. no cap.
β¨ NAME β¨
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.
literally it's giving "rename and then show receipts." you hand it the old name and the new name, it does the switcheroo even if there's a name conflict, and then it shows you all your current remotes so you can vibe check the result. main character behaviour fr fr π
π OPTIONS π
<old-remote-name>β the name of the remote you want to rename. the glow-down, if you will. the "before" pic. π<new-remote-name>β the new name of the remote. the glow-up. the "after." periodt. β¨
π₯ EXAMPLES π₯
let's peek at the remotes first, bestie:
$ 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)
and now we rename upstream to origin (yes, on purpose, the conflict is NOT a problem here, it's the whole point):
$ git-rename-remote upstream origin
origin git@myserver.com:myuser/bar.git (fetch)
origin git@myserver.com:myuser/bar.git (push)
ate. π₯ notice how it prints out the current remotes right after, so you don't have to go check yourself. iconic.
π AUTHOR π
Written by timfeirg <kkcocogogo@gmail.com>
π REPORTING BUGS π
<https://github.com/tj/git-extras/issues>
(if something's busted, tell the git-extras girlies here π«Ά)
π SEE ALSO π
<https://github.com/tj/git-extras>
okay that's the whole lore, bestie π go rename your remotes and slay. big kisses from the Git Extras crew, page dated May 2026 πΈ π§ β
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms