Skip to content
framework20 個の有効ルール2026-09-30 検証済み

Salesforce .gitignore テンプレート

Standard Salesforce gitignore template from upstream github/gitignore collection. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。

スタック統合ジェネレーター

フルジェネレーターで開く
Search for templates
クイック追加:
選択中1
Salesforce
選択されたテンプレート (1)
.gitignore
20 ルール
### 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 reports
coverage/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Eslint cache
.eslintcache
# Windows system files
Thumbs.db
ehthumbs.db
[Dd]esktop.ini
$RECYCLE.BIN/
# Salesforce Analyzer results
sca-results.csv
sfca_results.json
# Local environment variables
.env
41 行•UTF-8
決定論的パイプライン

生ソース: Salesforce .gitignore

クローラブルな公式アップストリーム原典
salesforce.gitignore•40 lines•UTF-8
# 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 reports
coverage/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Eslint cache
.eslintcache
# Windows system files
Thumbs.db
ehthumbs.db
[Dd]esktop.ini
$RECYCLE.BIN/
# Salesforce Analyzer results
sca-results.csv
sfca_results.json
# Local environment variables
.env

主要除外パターンの解説

ビルド・コンパイル生成物

ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。

$RECYCLE.BIN/

環境変数・シークレット情報

API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。

.env

キャッシュ・一時ファイル

コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。

coverage/*.lognpm-debug.log*yarn-debug.log*yarn-error.log*.eslintcache

OS・エディタ固有ファイル

macOS の .DS_Store やローカルエディタの設定フォルダなど、開発者固有のファイルをフィルタリングします。

Thumbs.dbehthumbs.db

ソース元とライセンス検証

ライセンス:: CC0-1.0

このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。