Skip to main content

How to rename git branch

Published 1 min readMarkdown
Part of seriesGit Cheatsheet
# 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

No comments yet. Be the first to comment.