Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -----------------------------------------------------------------
- # .gitignore for WordPress (based on original from @salcode)
- #
- # By default all files are ignored. You'll need to whitelist
- # any mu-plugins, plugins, or themes you want to include in the repo.
- #
- # To ignore uncommitted changes in a file that is already tracked, use
- # git update-index --assume-unchanged
- #
- # To stop tracking a file that is currently tracked, use
- # git rm --cached
- #
- # Change Log:
- #
- # ignore everything in the root except the "wp-content" directory.
- /*
- !wp-content/
- # ignore everything in the "wp-content" directory, except:
- # mu-plugins, plugins, and themes directories
- wp-content/*
- !wp-content/mu-plugins/
- !wp-content/plugins/
- !wp-content/themes/
- # ignore all plugins, and themes
- # unless explicitly whitelisted at the end of this file
- # uncomment the below if you want to ignore all mu-plugins by default
- # wp-content/mu-plugins/*
- wp-content/plugins/*
- wp-content/themes/*
- # ignore all files starting with . or ~
- .*
- ~*
- # ignore node dependency directories (used by grunt)
- node_modules/
- # ignore OS generated files
- ehthumbs.db
- Thumbs.db
- .DS_Store
- # 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
- # -------------------------
- # BEGIN Whitelisted Files
- # -------------------------
- # track these files, if they exist
- !.gitignore
- !.editorconfig
- !README.md
- !CHANGELOG.md
- !composer.json
- !package.json
- # track favicon files, if they exist
- !android-chrome-*.png
- !apple-touch-icon*.png
- !browserconfig.xml
- !favicon*.png
- !favicon*.ico
- !manifest.json
- !mstile-*.png
- !safari-pinned-tab.svg
- # track these mu-plugins, plugins, and themes
- # add your own entries here
- wp-content/plugins/zf-*
- wp-content/plugins/h1-*
- !wp-content/plugins/example-plugin/
- !wp-content/themes/example-theme/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement