From 54bdeaab888fb9085e718ef6ac781daa5d629e04 Mon Sep 17 00:00:00 2001 From: Matthew DeVore Date: Tue, 26 Mar 2019 10:27:38 -0700 Subject: [PATCH] .gitignore: remove editor- and OS-specific files Whenever Vim opens a file, it creates a ..swp file in the same directory as the file. Emacs adds *~ backup files. macOS creates .DS_Store files. Other editors and OS' surely do their own thing. Rather than add each one's own swap/backup file to this .gitignore, encourage users to add the corresponding items to their system-wide gitignore files. Change-Id: I5535f5d2f1ebe896eef108cfda087dcb4c50f031 Signed-off-by: Matthew DeVore --- .gitignore | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3679a3365..553ecac48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ /.project /target -.DS_Store infer-out bazel-* -*~ + +# Do not add editor- and OS-specific files like *~ (Emacs) and .DS_Store +# (macOS). Instead, add them to $XDG_CONFIG_HOME/git/ignore +# (~/.config/git/ignore if $XDG_CONFIG_HOME is not set) or +# $GIT_DIR/info/exclude. See "git help gitignore" for details.