(Before rename command): The .git/config file: <snip> [remote "origin"] url = https://github.com/SkybuckFlying/RamDiskSupportUtility.git fetch = +refs/heads/*:refs/remotes/origin/* ; All remote branches fetch = +refs/tags/*:refs/tags/* ; All remote tags fetch = +refs/notes/*:refs/remotes/origin/notes/* ; All remote notes (map to remote-tracking notes) fetch = +refs/pull/*/head:refs/remotes/origin/pull/*/head ; GitHub/GitLab PR heads ; fetch = +refs/changes/*:refs/remotes/origin/changes/* ; Gerrit changes (commented out as per your request) ; fetch = +refs/meta/config:refs/remotes/origin/meta/config ; Versioned remote config (if applicable) <snip> (Then rename command): git remote rename origin skybuck_repository (After rename command): The .git/config file: <snip> [remote "skybuck_repository"] url = https://github.com/SkybuckFlying/RamDiskSupportUtility.git fetch = +refs/heads/*:refs/remotes/skybuck_repository/* fetch = +refs/tags/*:refs/tags/* fetch = +refs/notes/*:refs/remotes/skybuck_repository/notes/* fetch = +refs/pull/*/head:refs/remotes/skybuck_repository/pull/*/head ; fetch = +refs/changes/*:refs/remotes/origin/changes/* ; Gerrit changes (commented out as per your request) ; fetch = +refs/meta/config:refs/remotes/origin/meta/config ; Versioned remote config (if applicable) <snip> Notice how the git rename command removed the comments, this is somewhat unfortunately. Fortunately a copy of the original is still available. Further tiny little issue, the command in comments not changed, but I can do that manually, leave as is, since it might contain info in case somebody wants to revert things ;) Bye for now, Skybuck Flying !