[PATCH v6 01/15] .gitignore: ignore new files

Alejandro Colomar alx.manpages at gmail.com
Tue Feb 15 14:57:41 UTC 2022


When working with git, one has to be very careful of not adding
temporary files resulting from compilation, testing, or text
editors.  With this .gitignore, one can add all of the changes
with `git add .` without having to specify the files manually,
avoiding accidents.  When a new file is created and should really
be added, one can add it still with the '-f' option to git-add(1).

Signed-off-by: Alejandro Colomar <alx.manpages at gmail.com>
Cc: Nginx Unit <unit at nginx.org>
Cc: "Valentin V. Bartenev" <vbart at nginx.com>
Cc: Zhidao HONG <z.hong at f5.com>
Cc: Igor Sysoev <igor at sysoev.ru>
Cc: Oisin Canty <o.canty at f5.com>
Cc: Andrei Zeliankou <zelenkov at nginx.com>
Cc: Maxim Romanov <m.romanov at f5.com>
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..ed833f0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+# Ignore everything new by default
+/*
-- 
2.34.1



More information about the unit mailing list