Skip to content

Instantly share code, notes, and snippets.

@colorful-tones
Last active April 28, 2024 20:05
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save colorful-tones/9adeab19373a0b3693795f199b188c8c to your computer and use it in GitHub Desktop.
Save colorful-tones/9adeab19373a0b3693795f199b188c8c to your computer and use it in GitHub Desktop.
An example .gitignore optimized for WP Engine hosting
#----------------------------------------
# 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