Hacker News new | past | comments | ask | show | jobs | submit login

>> Squashing is better than 100 crap commits

Unless your work is trivial, you will have crap commits. Have discipline but don't insist on working on trivial things just so your commits appear logical without rework.




Or learn to rebase those crap commits into coherent ones.


You realize that commits can be changed, right?


Of course. However, refactoring N crap commits into M atomic commits where M != 1 is non-trivial.

My point is about atomic commits, not git.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: