Skip to content

Instantly share code, notes, and snippets.

@yuriburger
Created February 3, 2020 08:11
Show Gist options
  • Save yuriburger/987b4505d50f3d4c444d700dbd0075a8 to your computer and use it in GitHub Desktop.
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
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