Git & Delivery Core B · Official guidance Platform: General

.gitignore

A .gitignore file lists path patterns Git should leave untracked. Those files stay out of status and new commits.

See how it works
You might call it ignore fileGit ignore patterns

See how it works

Original worked example.gitignore

Another example

A web project ignores dependencies, build output, editor state, and local environment files. It commits an example configuration.

Main parts

  1. 01Branch or change set
  2. 02Review and verification gate
  3. 03Released result

Use it when

Use it for generated files, local machine files, caches, or secret files that do not belong in the repository.

Do not use it when

It cannot hide tracked files or remove secrets from history. Avoid patterns that swallow required assets.

Name used in code

.gitignore patterns / git check-ignore

Before you ship

Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback.

Request you can copy

Outcome: Use .gitignore to release or recover the change safely, with a clear record. User context: A web project ignores dependencies, build output, editor state, and local environment files. It commits an example configuration. Delivery concept or operation: .gitignore. Why it fits: Use it for generated files, local machine files, caches, or secret files that do not belong in the repository. Do not use it when: It cannot hide tracked files or remove secrets from history. Avoid patterns that swallow required assets. Delivery requirements: Name the code repository and target. List preconditions, changes, review and CI checks, conflict and data-loss risks, release order, and the rollback or recovery command. Repository safeguards: Keep unpublished work and a clear history. Do not run destructive steps without an explicit backup. Check the exact code diff and remote target before publishing. Acceptance criteria: Review the intended diff and pass all required checks. Keep the target version traceable. Practice failure recovery and keep published history clear. Evidence and limits (evidence boundary): It is official for that source. Other platforms or teams may use the term in another way. Unknowns to confirm: Repository, branch, team activity, release environment, approval owner, protected checks, and rollback target.

Check this request

Review the current use of .gitignore. Definition: A .gitignore file lists path patterns Git should leave untracked. Those files stay out of status and new commits. Release checks: Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

B
How official is this term?

Official guidance

The named platform, framework, project, or expert group has an official guide for this term.

It is official for that source. Other platforms or teams may use the term in another way.

Scope
Git
Document status
stable
Checked on
2026-07-30

Evidence sources & scope

Authority source · Git · stable gitignore Scope: Git Role here: Authority within stated scope Source covers: canonical name, definition, platform API, implementation, usage guidance

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.