Search notes:

Git option: core.excludesfile

echo '*.swp' > ~/.gitignore
git config --global core.excludesfile ~/.gitignore

See also

.gitignore
Other Git options

Index