17 lines
483 B
Markdown
17 lines
483 B
Markdown
|
+++
|
||
|
date = "2010-08-09"
|
||
|
title = "Rename a git branch"
|
||
|
tags = ["git", "branch", "tip"]
|
||
|
slug = "rename-a-git-branch"
|
||
|
+++
|
||
|
In git, branching is cheap and easy. You do it all the time (you're not? Well, you should). Sometimes, though, you create a new feature branch, only to come to the conclusion later that the name you gave it does not cover the stuff you've been doing.
|
||
|
|
||
|
No problem for git! Renaming a branch is really easy:
|
||
|
|
||
|
git branch -m old_branch new_branch
|
||
|
|
||
|
That's all.
|
||
|
~
|
||
|
|
||
|
|