Created
October 17, 2016 22:26
-
-
Save lukesims/9239ade52a60fdc973449ea79834ede4 to your computer and use it in GitHub Desktop.
OctoberCMS .gitignore
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 OctoberCMS (http://octobercms.com/) | |
# Based on https://gist.github.com/salcode/b515f520d3f8207ecd04 for WordPress | |
# ------------------------------------------------------------------------------ | |
# By default all files are ignored. | |
# | |
# At the end of the file you will need to whitelist themes and plugins you want | |
# to include in the repo. | |
# | |
# Update the {PLACEHOLDERS} to reflect your setup. | |
# ------------------------------------------------------------------------------ | |
# October-specific rules | |
# ---------------------------------------------------------- | |
# Ignore everything in the root except the "plugins" and "themes" directories | |
/* | |
!themes/ | |
!plugins/ | |
# Ignore everything in the "themes" directory | |
themes/* | |
# Ignore everything in the "plugins" directory, except your own namespace | |
plugins/* | |
!plugins/{AUTHOR_NAMESPACE}/ | |
# If you have a mixture of private (in repo) and public (published to market) | |
# plugins, uncomment the following line to ignore all plugins in your namespace | |
# because you'll want to manage public plugins via the automatic updater | |
#plugins/{AUTHOR_NAMESPACE}/* | |
# Miscellaneous rules | |
# ---------------------------------------------------------- | |
# Ignore node depenencies | |
node_modules/ | |
# Ignore log files and databases | |
*.log | |
*.sql | |
*.sqlite | |
# Ignore packaged files | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip | |
# Whitelist rules | |
# ---------------------------------------------------------- | |
# Misc | |
!.gitignore | |
!.editorconfig | |
!composer.json | |
!package.json | |
# Themes | |
!themes/private-theme-one/ | |
!themes/private-theme-two/ | |
# Plugins | |
# If all of your plugins are private and you didn't uncomment line 31, | |
# then you don't need these rules | |
!plugins/{AUTHOR_NAMESPACE}/private-plugin-one/ | |
!plugins/{AUTHOR_NAMESPACE}/private-plugin-two/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment