about summary refs log tree commit diff stats
path: root/.gitignore
diff options
context:
space:
mode:
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore33
1 files changed, 30 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index a959665..2932e47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,31 @@
-/public/
+# 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
 
-# Local Netlify folder
-.netlify
\ No newline at end of file
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+
+!*.go
+!go.sum
+!go.mod
+
+!README.md
+!LICENSE
+
+!.envrc
+!justfile
+!*.nix
+!*.toml
+!/flake.lock
+
+!/content/**/*.md
+!/static/**/*
+!/templates/*
+
+# ...even if they are in subdirectories
+!*/