My Wordpress Gitignore
# Ignore wp-config.php, .htaccess and dandelion
wp-config.php
.htaccess
dandelion.yml
.gitignore
# Ignore specific files under wp-content
/wp-content/upgrades
/wp-content/updraft
/wp-content/uploads
/wp-content/ewww
/wp-content/cache
/wp-content/w3tc-config
/wp-content/backups
/wp-content/advanced-cache-backup.php
/wp-content/object-cache-backup.php
/wp-content/wp-cache-config.php
# Ignore these specific plugins
/wp-content/plugins/updraftplus
/wp-content/plugins/wp-sync-db-1.5
/wp-content/plugins/wp-sync-db-media-files-1.1.5
/wp-content/plugins/github-updater-5.2.0
# Don't ignore these themes
!/wp-content/themes/genesis
# Ignore Code Kit
/wp-content/themes/config.codekit
# Other cleanup
sitemap.xml
sitemap.xml.gz
*.log
.svn*
._*
Icon?
ehthumbs.db
Thumbs.db
# ignore mac files
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
# ignore log files and databases
*.log
*.sql
*.sqlite
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip