Created
July 8, 2014 15:08
-
-
Save ErikBernskiold/1492fcbdd94ffef1fd2d to your computer and use it in GitHub Desktop.
.gitignore for version controlled WordPress
This file contains hidden or 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
################### | |
# .gitignore | |
# | |
# We include all core files in the project repo and split passwords | |
# into ignored situational configurations so that we can store the wp-config. | |
################### | |
# WordPress # | |
############# | |
# Uploads, cache etc. | |
wp-content/uploads/ | |
wp-content/blogs.dir/ | |
wp-content/upgrade/ | |
wp-content/backup-db/ | |
wp-content/advanced-cache.php | |
wp-content/wp-cache-config.php | |
wp-content/cache/* | |
wp-content/cache/supercache/* | |
wp-content/cache/ | |
wp-content/backups/ | |
# Database connection configs | |
local-config.php | |
production-config.php | |
dev-config.php | |
# Sitemap | |
sitemap.xml | |
sitemap.xml.gz | |
# Others # | |
########## | |
# Ignore SASS cache files | |
**.sass-cache** | |
# Ignore .svn directories | |
.svn* | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # | |
############ | |
# it's better to unpack these files and commit the raw source | |
# git has its own built in compression methods | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip | |
# Logs and databases # | |
###################### | |
*.log | |
*.sql | |
*.sqlite | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment