Created
April 13, 2021 03:54
-
-
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)
This file contains 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
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