Last active
April 18, 2024 14:22
-
-
Save CapWebSolutions/48149e8ced024b8a37ec551906a9f14e to your computer and use it in GitHub Desktop.
Default gitignore for plugins
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 for WordPress plugins | |
# ver 20240417 | |
# | |
# 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: | |
# 20240417 Convert whole project file to plugin only. | |
# 20211109 Clean up for CWS usage | |
# 20160309 Added favicon files as whitelisted files | |
# 20150302 Added composer.json as a whitelisted file | |
# 20150227 Created as fork of https://gist.github.com/salcode/9940509, | |
# this version ignores all files by default | |
# ----------------------------------------------------------------- | |
# 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 | |
*.code-workspace | |
# 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 | |
# ignore extraneous large/disallowed file types (ala WP Engine) | |
# a CDN should be used for these | |
*.hqx | |
*.bin | |
*.deb | |
*.dmg | |
*.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 | |
# ------------------------- | |
# BEGIN Whitelisted Files | |
# ------------------------- | |
# track these files, if they exist | |
!.gitignore | |
!.editorconfig | |
!README.md | |
!readme.md | |
!readme.txt | |
!CHANGELOG.md | |
!composer.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 files | |
# add your own entries here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment