How to rename a local Git branch?
To rename the current branch, simply use following command:
git branch -m new-branch
To rename other branch, mention both old and new branch names:
git branch -m old_branch new_branch
Learn more about the similar topics:
Tutorials |
---|
No Content Found. |
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |