How to rename a local Git branch?
To rename a local Git branch, you can use the git branch -m command. 1. Rename the Current Branch If you want to rename the branch you’re currently working on, use the git branch -m command followed by the new branch name. Command: git branch -m <new-branch-name> Example: If you’re on the feature/old-feature branch and […]