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

I love how this got 4 different answers.


2 answers the same and rolling back all files. 1 answer for rolling back single file. 1 non-solution.

The OP has a poorly defined use case for "undo" (which commit? all files or one?) and can easily wrap whichever suits their need in an alias.


The question was intentionally crafted for that effect :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: