One of the beauties of using git is the ability to share useful code. Ironically one bit of useful code is the .gitignore file. For those just getting started with git this is a file that allows you to ignore specific files or directories when committing code into your repository. If you’ve had the opportunity to write code in multiple languages or on multiple platforms you know that each platform, framework, and or language has different files that need to be ignored.
Github has a useful repository of ignore file templates located here. These templates will help get you started with a new project.