Skip to content
other8 active rulesVerified 2026-09-30

Go.AllowList (Golang) .gitignore Template

Standard Go.AllowList (Golang) gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with Go.AllowList (Golang)
Search for templates
Quick add:
Selected1
Go.AllowList (Golang)
Selected Templates (1)
.gitignore
8 rules
### Go.AllowList (Golang) ###
# 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
!*/
25 lines•UTF-8
Deterministic

Raw Go.AllowList (Golang) .gitignore

Crawlable upstream source template
golang-goallowlist.gitignore•24 lines•UTF-8
# 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
!*/

Key Pattern Breakdown

Core Ignored Rules

Primary upstream ignore rules defined for this technology.

*!/.gitignore!*.go!go.sum!go.mod!README.md+2 more

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.