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.

2m read timeFrom devdojo.com
Post cover image
Table of contents
Rename local git branchRename remote git branchConclusion

Sort: