Salesforce .gitignore Template
Standard Salesforce 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
Open in Full GeneratorStandard Salesforce gitignore template from upstream github/gitignore collection
### Salesforce #### This file is used for Git repositories to specify intentionally untracked files that Git should ignore.# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore# For useful gitignore templates see: https://github.com/github/gitignore # Salesforce cache.sf/.sfdx/.localdevserver/deploy-options.json.localdev # LWC VSCode autocomplete**/lwc/jsconfig.json # LWC Jest coverage reportscoverage/ # Logslogs*.lognpm-debug.log*yarn-debug.log*yarn-error.log* # Eslint cache.eslintcache # Windows system filesThumbs.dbehthumbs.db[Dd]esktop.ini$RECYCLE.BIN/ # Salesforce Analyzer resultssca-results.csvsfca_results.json # Local environment variables.env Raw Salesforce .gitignore
Crawlable upstream source template# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. # If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore# For useful gitignore templates see: https://github.com/github/gitignore # Salesforce cache.sf/.sfdx/.localdevserver/deploy-options.json.localdev # LWC VSCode autocomplete**/lwc/jsconfig.json # LWC Jest coverage reportscoverage/ # Logslogs*.lognpm-debug.log*yarn-debug.log*yarn-error.log* # Eslint cache.eslintcache # Windows system filesThumbs.dbehthumbs.db[Dd]esktop.ini$RECYCLE.BIN/ # Salesforce Analyzer resultssca-results.csvsfca_results.json # Local environment variables.env Key Pattern Breakdown
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
System & Editor Files
Filters out operating system metadata and workstation-specific editor configuration folders.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.