Categories News Review git: how to rename a branch (both local and remote)? Post author By Mike Nova Post date July 26, 2025 I have a local branch master that points to a remote branch origin/regacy (oops, typo!). How do I rename the remote branch to origin/legacy or origin/master? I tried: git remote rename regacy legac…