Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Git & Version Control
  4. Gitignore Patterns

Git & Version Control · Cheatsheet

Gitignore Patterns Cheatsheet

Check .gitignore patterns, directory scope, exceptions, and tracked-file limits. Diagnose matching rules with Git check-ignore examples.

40 commands 7 sections

On this sheet

Scope and limits 4 Files and extensions 6 Directories and paths 6 Exceptions and literal characters 6 Inspect the rules 6 Choose where rules belong 6 Sources and related references 6

No entry matches that filter.

Scope and limits

  • Untracked files only Ignore rules do not remove files already tracked by Git
  • Ignore is not access control An ignore rule does not protect or encrypt a file
  • Last matching rule Within one rule level, the last matching pattern decides
  • Pattern examples are separate Combine only the examples that match your intended policy

Files and extensions

  • *.log Match log names at any depth below this ignore file
  • debug.log Match this file or directory name at any depth
  • /debug.log Match this name only beside the ignore file
  • *.tmp Match names with a temporary-file extension
  • report?.csv Match report plus one non-slash character, then .csv
  • report[0-9].csv Match report plus one digit, then .csv

Directories and paths

  • cache/ Ignore directories named cache at any depth below this file
  • /cache/ Ignore only the cache directory beside this ignore file
  • build/output.txt Match this path relative to the ignore file
  • docs/*.html Match direct HTML children of docs
  • docs/**/*.html Match HTML files inside docs at any depth
  • **/temp/ Ignore directories named temp at any depth

Exceptions and literal characters

  • *.log !important.log Keep important.log eligible when no parent is excluded
  • /build/* !/build/keep.txt Ignore build children except keep.txt
  • /cache/ !/cache/keep.txt This exception fails because its parent remains excluded
  • # Comment Add a comment on its own line
  • \#notes.txt Match a name that starts with a literal hash
  • \!important.txt Match a name that starts with a literal exclamation mark

Inspect the rules

  • git check-ignore -v -- <file> Show a matching rule; ! marks an inclusion exception
  • git check-ignore --no-index -v -- <file> Check rule matching even when the file is tracked
  • git check-ignore -q -- <file> Return 0 for ignored, 1 for not ignored, or 128 on error
  • git status --short --ignored Show ignored paths with !! markers
  • git ls-files -- <file> Check whether this path is already tracked
  • git ls-files --others --ignored --exclude-standard List ignored untracked files using standard rule sources

Choose where rules belong

  • .gitignore Commit shared rules that apply to the project
  • .git/info/exclude Keep rules for this local repository only
  • core.excludesFile Configure a separate ignore file for personal patterns
  • Nested .gitignore Apply a rule to its directory and descendants
  • Already tracked file Plan an index change separately; ignoring alone has no effect
  • Exposed private data Ignoring later does not remove data from earlier commits

Sources and related references

  • https://git-scm.com/docs/gitignore Check pattern syntax, precedence, and exceptions
  • https://git-scm.com/docs/git-check-ignore Check diagnostics and exit codes
  • https://git-scm.com/docs/git-ls-files Check index and ignored-file listings
  • https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files Choose shared and local ignore locations
  • /cheatsheets/git-history/ Inspect recorded file history
  • /cheatsheets/git-branches-remotes/ Review branches and remote state

Related cheatsheets

  • Git History and Diffs38 commands
  • Git Branches and Remotes39 commands
  • Git Commands55 commands

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor