Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

git reset --hard HEAD~1


lol not sure why this got downvoted unless it's because ~1 is redundant and you can either do HEAD^ or HEAD~ and save one keystroke




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: