Created
February 3, 2020 08:11
-
-
Save yuriburger/987b4505d50f3d4c444d700dbd0075a8 to your computer and use it in GitHub Desktop.
[git save work and reset to remote] Git save work and reset to remote branch #git
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 commit -a -m "Saving my work" | |
git branch my-saved-work | |
git fetch origin | |
git reset --hard origin/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment