Last active
June 22, 2024 07:41
-
-
Save colorful-tones/9adeab19373a0b3693795f199b188c8c to your computer and use it in GitHub Desktop.
An example .gitignore optimized for WP Engine hosting
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
#---------------------------------------- | |
# This Git ignore should be located | |
# in your WordPress install's wp-content/ | |
# directory. | |
#---------------------------------------- | |
#--------------------------- | |
# WordPress general | |
#--------------------------- | |
/index.php | |
#--------------------------- | |
# WordPress themes | |
#--------------------------- | |
/themes/* | |
# DO NOT ignore these themes... | |
!/themes/frost | |
#--------------------------- | |
# WordPress plugins | |
#--------------------------- | |
/plugins/* | |
# DO NOT ignore these plugins... | |
!/plugins/wordpress-seo | |
#--------------------------- | |
# WP MU plugins: often | |
# managed by the platform. | |
#--------------------------- | |
/mu-plugins/ | |
#--------------------------- | |
# WP uploads directory | |
#--------------------------- | |
/uploads/ | |
#--------------------------- | |
# WP upgrade files | |
#--------------------------- | |
/upgrade/ | |
#--------------------------- | |
# OS-specific files | |
#--------------------------- | |
.DS_Store | |
.Trashes | |
Thumbs.db | |
#--------------------------- | |
# Composer | |
#--------------------------- | |
/vendor | |
.env | |
.env.* | |
!.env.example | |
#--------------------------- | |
# Smart Plugin Manager | |
#--------------------------- | |
/.logs/ | |
autoupdater_maintenance_mode_enabled.tmp | |
#--------------------------- | |
# large/disallowed file types | |
# a CDN should be used for these | |
#--------------------------- | |
*.hqx | |
*.bin | |
*.exe | |
*.dll | |
*.deb | |
*.dmg | |
*.iso | |
*.img | |
*.msi | |
*.msp | |
*.msm | |
*.mid | |
*.midi | |
*.kar | |
*.mp3 | |
*.ogg | |
*.m4a | |
*.ra | |
*.3gpp | |
*.3gp | |
*.mp4 | |
*.mpeg | |
*.mpg | |
*.mov | |
*.webm | |
*.flv | |
*.m4v | |
*.mng | |
*.asx | |
*.asf | |
*.wmv | |
*.avi | |
*.log | |
#--------------------------- | |
# Build tools | |
#--------------------------- | |
node_modules | |
#--------------------------- | |
# Other | |
#--------------------------- | |
.gitattributes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment