Managing which files should be ignored by GIT (code repository) it an important skill. It is done by .gitignore file in which each line represents a directory, a pattern, or a file to be ignored.
Step: Stay organized
Keep your GIT ignore file organized, I keep it ordered alphabetically using a
script in TextWrangler editor.
Step: Find Plugin
Always investigate plugins available to support your code.