Not to long ago I stumbled across a neat web-site named Gitignore.io – a web-site dedicated to generate .gitignore files for your projects.
Simply enter the name of your IDE, Programming Language or OS in order to create the .gitignore list of files and folders you may not want to commit.
.gitignore is a file that informs Git which files it should ignore. It is used to avoid committing files that are not useful for other contributors. Common files that you may not want to commit are files generated by your IDE, tokens or passwords.
They have 325 operating system, IDE, and programming language .gitignore templates.
Chances are they have exactly what you need in order to generate .gitignore files. 🙂