Reset Hard to last commit git reset --hard HEAD~1 Returns the patch history of a file git log -p -- filename Related Ideas