---
title: "Comment by Akcr on \"Git Commands\" | Hashnode"
description: "git branch -m &lt;old-branch-name&gt; &lt;new-branch-name&gt; The git branch -m command is used to rename a branch in Git"
url: "https://hashnode.com/posts/git-commands/6424728242c98a158831ec49/comment/654c59a54a0606fcdd91f2a3"
---

[Discussion](https://hashnode.com/posts/git-commands/6424728242c98a158831ec49)

Comment [Git Commands](https://hashnode.com/posts/git-commands/6424728242c98a158831ec49)

[Akcr](https://hashnode.com/@akcr684)

[Nov 9, 2023](https://hashnode.com/posts/git-commands/6424728242c98a158831ec49/comment/654c59a54a0606fcdd91f2a3)

git branch -m <old-branch-name> <new-branch-name>

The git branch -m command is used to rename a branch in Git
