How to rename a git branch?
This blogpost discusses how you can rename your local git branch.
If you want to rename a branch while pointed to any branch, do:
git branch -m <oldname> <newname>
If you want to rename the current branch, you can do:
git branch -m <newname>
That’s all for this blog post! I hope you learned something new! ☺️