314 B
314 B
title, tags
| title | tags |
|---|---|
| Rename a branch | branch,intermediate |
Renames a local branch.
- Use
git branch -m <old-name> <new-name>to rename<old-name>to<new-name>.
git branch -m <old-name> <new-name>
git checkout master
git branch -m patch-1 patch-2
# Renames `patch-1` to `patch-2`