about summary refs log tree commit diff stats
path: root/.gitignore
diff options
context:
space:
mode:
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2368a38
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
+# Allowlisting gitignore template for GO projects prevents us
+# from adding various unwanted local files, such as generated
+# files, developer configurations or IDE-specific files etc.
+#
+# Recommended: Go.AllowList.gitignore
+
+# Ignore everything
+*
+
+# But not these files...
+!/.gitignore
+!/.editorconfig
+!/.envrc.sample
+
+!/README.md
+!/LICENSE
+!/justfile
+
+!/nix
+!*.nix
+
+!/.golangci.yaml
+!/go.sum
+!/go.mod
+!/gomod2nix.toml
+!*.go
+
+# ...even if they are in subdirectories
+!*/