Update .gitignore to the good rules mentioned in github help

https://help.github.com/articles/ignoring-files