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

I think the ability to edit history is one of the great advantages of Git. I encourage people to use it rather than ignore it.

Cleaner history makes life much easier for those who will try to understand what you did weeks or months or even years later (including your future self).

Of course, you shouldn't (with rare exceptions) edit history you have already shared with others; but, I never found that concept, or the way git implements it, particularly hard to understand. (I will admit some of git's commands are hard to remember - I am always forgetting the difference between "git reset --hard" and "git reset --soft".)



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: