Last active
February 15, 2024 05:00
-
-
Save Shizumi/8242eae41cf970eb295784cf202e40f4 to your computer and use it in GitHub Desktop.
.gitignore for WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 一部を除くルートの全てを除外 | |
/* | |
## ルートの監視対象 | |
!wp-content/ | |
!/.gitignore | |
!/assets/ | |
!README.md | |
!/pardot_post/ | |
# 一部を除くwp-content以下のディレクトリを除外 | |
wp-content/* | |
## 対象外のディレクトリ | |
!wp-content/themes/ | |
!wp-content/plugins/ | |
# 一部を除くプラグインを除外 | |
wp-content/plugins/* | |
## 対象外のプラグイン | |
#!wp-content/plugins/sample-*/ | |
# 特定のテーマを除外 | |
wp-content/themes/twenty*/ | |
wp-content/themes/index.php | |
# nodeの依存ファイルを除外 | |
node_modules/ | |
# ログとDB関連のファイルを除外 | |
*.log | |
*.sql | |
*.sqlite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment