Skip to content

Instantly share code, notes, and snippets.

@amackiewicz
Created April 13, 2021 03:54
Show Gist options
  • Save amackiewicz/585b9154cc397df2707f9b7e05d87af5 to your computer and use it in GitHub Desktop.
Save amackiewicz/585b9154cc397df2707f9b7e05d87af5 to your computer and use it in GitHub Desktop.
Move committed (but not pushed) changes to new branch (master branch direct push protection)
git checkout -b mybranch
git push origin mybranch
git checkout master
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment