about summary refs log tree commit diff stats
path: root/.gitignore
blob: 2368a384f0a1760c3ff82bf9836cf072e57d3db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
!*/