galbenu.ro

Rename branch in GIT (on local)

Mar
04

If you want to rename the current branch use this command:

git branch -m "new-branch-name"

If you want to rename any other branch use this command:

git branch -m "old-branch-name" "new-branch-name"

Leave a Reply

Your email address will not be published. Required fields are marked *