---
title: "Discussion on \"How to rename git branch?\" | Hashnode"
description: "Discussion on \"How to rename git branch?\". ​Made a small mistake while naming your git branch, don't panic this blog post will go through all the possibilities for renaming the git branch on local and remote.\nGit branch can be renamed with a simple command \"git branch -m \", this will rename y..."
url: "https://hashnode.com/posts/how-to-rename-git-branch/61f6ad0a66fcfc728be1a711"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to rename git branch?](https://novicedev.hashnode.dev/how-to-rename-git-branch?utm_source=hashnode&utm_medium=feed)

​Made a small mistake while naming your git branch, don't panic this blog post will go through all the possibilities for renaming the git branch on local and remote. Git branch can be renamed with a simple command "git branch -m ", this will rename y...

Jan 30, 2022 · 3 min read · novicedev.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[NoviceDev](https://hashnode.com/@novecedev)

@novecedev

  
[View profile](https://hashnode.com/@novecedev)

## Responses 1

Markdown supported · ⌘↵ to post

[Gajendra Singh Rathore](https://hashnode.com/@gsrathoreniks)

[Jan 30, 2022](https://hashnode.com/posts/how-to-rename-git-branch/61f6ad0a66fcfc728be1a711/comment/61f6d45a6bb59d5767db8c09)

good one
