.gitignore

 

Here is a solid .gitignore file that covers a lot of ground

You can edit your ~/.gitignore to apply this globally, or implement in in the project root