If you are going to use a .gitignore, please review the following

https://help.github.com/articles/ignoring-files#global-gitignore