mirror of
https://github.com/github/gitignore
synced 2024-12-26 06:40:18 +01:00
Merge pull request #3912 from kuritka/go-allow-list-community
Adding AllowList for Go
This commit is contained in:
commit
cb80974b9f
23
community/Golang/Go.AllowList.gitignore
Normal file
23
community/Golang/Go.AllowList.gitignore
Normal file
@ -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
|
||||
!*/
|
Loading…
x
Reference in New Issue
Block a user