Skip to content

Instantly share code, notes, and snippets.

@1natsu172
Created October 20, 2017 07:03
Show Gist options
  • Save 1natsu172/f4e22ec1aa408cff5cf29327abee14a0 to your computer and use it in GitHub Desktop.
Save 1natsu172/f4e22ec1aa408cff5cf29327abee14a0 to your computer and use it in GitHub Desktop.
wp-attach-dev の .gitignore
.DS_Store
*.sql
npm-debug.log
# local by flywheelプロビジョンデータでいらないものignoreする
conf
logs
app/sql
# https://github.com/github/gitignore/blob/master/WordPress.gitignore の内容をlocal by flywheel用にパス変える
app/public/.htaccess
app/public/license.txt
app/public/readme.html
app/public/sitemap.xml
app/public/sitemap.xml.gz
app/public/*.log
app/public/wp-config.php
app/public/wp-content/advanced-cache.php
app/public/wp-content/backup-db/
app/public/wp-content/backups/
app/public/wp-content/blogs.dir/
app/public/wp-content/cache/
app/public/wp-content/upgrade/
app/public/wp-content/uploads/
app/public/wp-content/wp-cache-config.php
app/public/wp-content/plugins/hello.php
# ここまで
# themesの一部のみをgit管理するようにする
app/public/wp-content/themes/*
!app/public/wp-content/themes/index.php
# テーマ名は適宜変更する例(twentyseventeenのみ管理対象にしている)
!app/public/wp-content/themes/twentyseventeen
# !app/public/wp-content/themes/管理したいテーマフォルダ名
# wp-attach-devの部分はgitcloneしてきたときのフォルダ名なので適宜変える必要があるかも
wp-attach-dev/.git
wp-attach-dev/.gitignore
wp-attach-dev/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment