17 lines
192 B
Markdown
17 lines
192 B
Markdown
---
|
|
tags: [git, procedural]
|
|
---
|
|
|
|
# Rename a branch
|
|
|
|
### In local development
|
|
|
|
```bash
|
|
git branch -m <old_name> <new_name>
|
|
```
|
|
|
|
### Update the remote
|
|
|
|
```bash
|
|
git push origin -u <new_name>
|
|
```
|