Comment Comment by Dobbs Additionally git supports a global git ignore. $ git config --global core.excludesfile ~/.gitignore Then you can put all the standard things you want to ignore into it: $ cat ~/.gitignore .DS_Store ./drafts/ *.swp And it will apply to all git commands on your computer. parent Dobbs 4 years ago