Skip to content

Instantly share code, notes, and snippets.

@za
Created November 4, 2021 07:35
Show Gist options
  • Save za/3ef289c431cc5d07d37a8a670d2cd0f6 to your computer and use it in GitHub Desktop.
Save za/3ef289c431cc5d07d37a8a670d2cd0f6 to your computer and use it in GitHub Desktop.
git reset one commit (local commit)
```
git reset --hard HEAD~1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment