Rename local git branch
Renames a local git branch while keeping the name of the upstream branch unchanged.
Authored by: sirideBrought to you by Warp, a free terminal reimagined to work like a modern app.
oldname
newname
Command
Copy
git branch -m oldname newname
Tags
Edit in GitHub
Copied