Skip to content

Instantly share code, notes, and snippets.

@WaYdotNET
Created October 5, 2018 08:40
Show Gist options
  • Save WaYdotNET/95c04305256cdb62515d3913c27702b2 to your computer and use it in GitHub Desktop.
Save WaYdotNET/95c04305256cdb62515d3913c27702b2 to your computer and use it in GitHub Desktop.
git log (get the commit id that you want to reset to)
git reset --hard "commit id"
git reset --soft HEAD@{1}
git commit -m "Reverting to the state of the project at commit id"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment