← All open source projects

Gitignore Templates

github/gitignore

github/gitignore is a collection of .gitignore templates for languages, frameworks, and development tools.

Forks 82,436
Author github
Language Unknown
License CC0-1.0
Synced 2026-06-07

What github/gitignore is

github/gitignore is GitHub’s official collection of .gitignore templates. The README says GitHub uses the list to populate template choosers when creating repositories and files on GitHub.com.

It turns the everyday question “what should not be committed” into a maintained collection of rules for languages, frameworks, editors, and operating systems.

What is inside

The structure has root templates, Global, and community. The root contains common languages and technologies. Global contains editors, tools, and operating systems for global ignore rules. community contains specialized templates outside the main set.

Template shape

A .gitignore template keeps temporary, generated, and local files out of the repository.

Language: Plain text
node_modules/
dist/
.env
.DS_Store
*.log

Why it matters

A good .gitignore keeps build artifacts, local env files, editor state, and logs out of git. GitHub/gitignore matters because it provides a shared starting point for many new repositories.

Limits

A template does not know your architecture. It still needs adaptation: generated files may be committed in some projects, local files may be required, and combined templates can conflict.