I also don’t commit files by accident. Just don’t `git add *` as some people do, and check `git status` before committing, and then you’re good.