Pinned Loading
-
rename git branch locally and remotely
rename git branch locally and remotely 1git branch -m old_branch new_branch # Rename branch locally
2git push origin :old_branch # Delete the old branch
3git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.