git :: rename a git branch
Contents
Rename a Git Branch
That’s easy pal. Renaming an existing branch in git repository is easy and simple. This method applies to renaming a branch in your local repository. Changes will reflect in the remote repository after you make a push.
If you are in the branch that you need to rename1git branch -m <new_branch_name>
If you are not in the branch that you need to rename
|
|
git is awesome!
Author: Deepu Mohan Puthrote
Link: https://deepumohan.com/tech/git-rename-branch/
This work by Deepu Mohan Puthrote is licensed under a Creative Commons Attribution 4.0 International License