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

My advice to anybody who wants to use Git without making such stupid mistakes as this guy: do a 'git diff' before you commit. It's as simple as that. It's astounding how many people don't know what exactly they commit. I've seen people commit secrets, binary files, random artifacts, code that doesn't even compile/run just because they have no idea what they commit. With Git there is no excuse to not know what you commit.


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

Search: