gitignore¶
You can tell GIT not to track some files via the .gitignore file. Here we collect some examples to put into the .gitignore file. See also man gitignore.
Typical gitignore entries¶
.DS_Store
*~
.#*
.*.sw?
.DS_Storeused by the macOS Finder*~are backup files generated by Emacs an other editors.#*are temporary files used by Emacs.*.sw?are vim swap files
Global gitignore¶
You can define a global gitignore file
git config --global core.excludesfile ~/.gitignore.global
to have a list of exclusions common to all your repositories.