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

I have ADHD, so often as I am working on one feature, I will begin accidentally working on another unrelated feature along side it. I rely on staging a lot to ensure that each commit has only the parts that it needs.



Same here, I actually find `git add -p` to be very useful.


commit also has a -p flag.


Oh wow. No need for me to use git add ever again!

EDIT: I suppose I have to use it to add new files :)


Just use `git add -i` to mix and match :)




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

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

Search: