Created
July 18, 2018 12:29
-
-
Save jamestrevorlees/2a0600e8c594650a42cd58e17de9e040 to your computer and use it in GitHub Desktop.
.gitignore (WordPress local environment)
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
# ignore everything in the root except the "wp-content" directory.* | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
wp-content/* | |
!wp-content/plugins/ | |
!wp-content/themes/ | |
!wp-content/mu-plugins/ | |
# ignore all files starting with . or ~ | |
.* | |
~* | |
# ignore node dependency directories (used by grunt) | |
node_modules/ | |
# ignore OS generated files | |
ehthumbs.db | |
Thumbs.db | |
# ignore Editor files | |
*.sublime-project | |
*.sublime-workspace | |
*.komodoproject | |
# 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 | |
*.wpress | |
# ------------------------- | |
# BEGIN Whitelisted Files | |
# ------------------------- | |
# track these files, if they exist | |
!.editorconfig | |
!README.md | |
!CHANGELOG.md | |
!composer.json | |
wp-content/plugins/what-the-file/* | |
!/.gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment