Skip to content

Rename local git branch

How

git branch -m <new name>

Create an alias

git config --global alias.rename 'branch -m'

Now you can run git rename <new name>


Want to make this site better? Open a PR or help fund hosting costs