* .gitignore: Ignore all subdirectories.
Also ignore *.bak, *.core, *.out, *.t, core, and core.*.
Also ignore .*, except for .gitignore itself.
---
 .gitignore | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index e7bb0416..5a140b46 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,26 +1,38 @@
 # Files intentionally not tracked by Git.
 # This file is in the public domain.
+#
+# Ignore all subdirectories.
+*/
+#
+# Ignore non-directories that are the output of builds,
+# or are backups or nonces unlikely to be added to the repository.
 *.a
 *.asc
+*.bak
 *.ck
-*.ckd/
+*.core
 *.diff
-*.dir/
 *.i
 *.o
 *.orig
+*.out
 *.patch
 *.pdf
 *.ps
 *.rej
 *.s
+*.t
 *.tar
 *.tar.*
 *.txt
 *.tzs
 *.zi
 *~
+.*
+!.gitignore
 ChangeLog
+core
+core.*
 date
 leapseconds
 tzdir.h
-- 
2.51.0

Reply via email to