Try not to commit code that's commented out. If you're using the Github app for mac, you can choose which lines you want to commit, if you don't want to include some things in the commit.