paint-brush
A Simple Way to Rename Local and Remote Git Branchby@kodewithchirag
173 reads

A Simple Way to Rename Local and Remote Git Branch

by Kode with Chirag2mDecember 4th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Git allows us to rename the git branch locally and under the remote. Renaming a local Git branch is just a matter of running a single “git branch -m” command. You can’t directly rename a remote branch as you need to push the renamed local branch to the remote repository and then delete the old branch from there. If your local branch is already pushed to a remote repository then this command will help you to rename it. If you want to check the changes then you can log in to your GitHub or GitLab portal and see the changes there.

Company Mentioned

Mention Thumbnail
featured image - A Simple Way to Rename Local and Remote Git Branch
Kode with Chirag HackerNoon profile picture
Kode with Chirag

Kode with Chirag

@kodewithchirag

Helping others simplify the web development journey by keeping things short.

Learn More
LEARN MORE ABOUT @KODEWITHCHIRAG'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kode with Chirag HackerNoon profile picture
Kode with Chirag@kodewithchirag
Helping others simplify the web development journey by keeping things short.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here