rename a local and the remote branch

suggest change

the easiest way is to have the local branch checked out:

git checkout old_branch

then rename the local branch, delete the old remote and set the new renamed branch as upstream:

git branch -m new_branch
git push origin :old_branch
git push --set-upstream origin new_branch

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents