Loading...
Cheat sheet
Powerful Git commands for serious troubleshooting and productivity.
Undo last commit but keep changes
git reset --soft HEAD~1Completely discard all local changes
git reset --hard HEAD
git clean -fdShow files changed in a specific commit
git show --name-only <hash>