Last active
February 10, 2022 00:11
-
-
Save FernandoCutire/c3e0766e96922ddf1428257bc07c7bfe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try to disable the branch protection in the settings/repository page. Check the sections Default Branch and Protected Branches | |
After that: | |
Checkout the branch locally. | |
$ git checkout branch | |
Rename it locally | |
$ git checkout -b branch_old | |
delete remote branch | |
$ git push --delete origin branch | |
push the locally renamed branch to remote. | |
git push --set-upstream origin branch_old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment