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

You need to test the version of the code you are going to publish, and unless you are publishing every time you commit, you don't need to test each commit.

I use git add -p whenever I've made too many changes between commits. I like for my commits to be of a single topic if possible.

If I use git add -p to break up a commit into 10 separate chunks, and find out something is broken, it's not hard to find the commit that caused the issue (if the commits are topical and not mixed).



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

Search: