Skip to content

Instantly share code, notes, and snippets.

@h4n0sh1
Last active August 30, 2025 21:09
Show Gist options
  • Save h4n0sh1/dfd60047740087a78629bfd106349360 to your computer and use it in GitHub Desktop.
Save h4n0sh1/dfd60047740087a78629bfd106349360 to your computer and use it in GitHub Desktop.
Git Cheatsheet
Rewind main branch to commit 075
git push -f origin 075a6830540d97674694902c7eaaa6be5c222330:main
Unstage most recent commit
git reset HEAD~1
Amend most recent commit message
git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment