# How to rename git branch

```bash
# 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



```
