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

Git Hub Pages .gitignore テンプレート

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

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

フルジェネレーターで開く
Search for templates
クイック追加:
選択中1
Git Hub Pages
選択されたテンプレート (1)
.gitignore
6 ルール
### Git Hub Pages ###
# This .gitignore is appropriate for repositories deployed to GitHub Pages and using
# a Gemfile as specified at https://github.com/github/pages-gem#conventional
# Basic Jekyll gitignores (synchronize to Jekyll.gitignore)
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Additional Ruby/bundler ignore for when you run: bundle install
/vendor
# Specific ignore for GitHub Pages
# GitHub Pages will always use its own deployed version of pages-gem
# This means GitHub Pages will NOT use your Gemfile.lock and therefore it is
# counterproductive to check this file into the repository.
# Details at https://github.com/github/pages-gem/issues/768
Gemfile.lock
20 行•UTF-8
決定論的パイプライン

生ソース: Git Hub Pages .gitignore

クローラブルな公式アップストリーム原典
githubpages.gitignore•19 lines•UTF-8
# This .gitignore is appropriate for repositories deployed to GitHub Pages and using
# a Gemfile as specified at https://github.com/github/pages-gem#conventional
# Basic Jekyll gitignores (synchronize to Jekyll.gitignore)
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Additional Ruby/bundler ignore for when you run: bundle install
/vendor
# Specific ignore for GitHub Pages
# GitHub Pages will always use its own deployed version of pages-gem
# This means GitHub Pages will NOT use your Gemfile.lock and therefore it is
# counterproductive to check this file into the repository.
# Details at https://github.com/github/pages-gem/issues/768
Gemfile.lock

主要除外パターンの解説

依存関係・パッケージフォルダ

パッケージマネージャーによって再インストール可能な外部ライブラリや vendor フォルダを除外します。

/vendor

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

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

.sass-cache/.jekyll-cache/

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

ライセンス:: CC0-1.0

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