Skip to main content

Command Palette

Search for a command to run...

How to rename git branch

Updated
1 min read
# How to rename local git branch
git branch -m newBranchName

# If the old branch name has alrady been pushed to remote, 
# you'd need to do a bit of cleanup.

# To list all your branches:
git branch -a