aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorBrian Douglas <bdougie@users.noreply.github.com>2021-12-10 10:53:41 -0800
committerGitHub <noreply@github.com>2021-12-10 10:53:41 -0800
commitcb80974b9f8ea22e774c573c0dfd9593a8b8c973 (patch)
tree1446a603f02dab43143b22692473847441684ca2 /community
parent3b6d9b05997558c7d1b376429a153e11610b8195 (diff)
parent4e89ae30edecbbd49d72fb3a04142ca05b46f07e (diff)
downloadgitignore-cb80974b9f8ea22e774c573c0dfd9593a8b8c973.tar.gz
gitignore-cb80974b9f8ea22e774c573c0dfd9593a8b8c973.zip
Merge pull request #3912 from kuritka/go-allow-list-community
Adding AllowList for Go
Diffstat (limited to 'community')
-rw-r--r--community/Golang/Go.AllowList.gitignore23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/Golang/Go.AllowList.gitignore b/community/Golang/Go.AllowList.gitignore
new file mode 100644
index 00000000..a309a018
--- /dev/null
+++ b/community/Golang/Go.AllowList.gitignore
@@ -0,0 +1,23 @@
+# 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
+
+!*.go
+!go.sum
+!go.mod
+
+!README.md
+!LICENSE
+
+# !Makefile
+
+# ...even if they are in subdirectories
+!*/