Skip to content

Instantly share code, notes, and snippets.

@FernandoCutire
Last active February 10, 2022 00:11
Show Gist options
  • Save FernandoCutire/c3e0766e96922ddf1428257bc07c7bfe to your computer and use it in GitHub Desktop.
Save FernandoCutire/c3e0766e96922ddf1428257bc07c7bfe to your computer and use it in GitHub Desktop.
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