Skip to content

Instantly share code, notes, and snippets.

@stikkx
Created July 14, 2022 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stikkx/8df999df8f46db9ba6791b15fbc68814 to your computer and use it in GitHub Desktop.
Save stikkx/8df999df8f46db9ba6791b15fbc68814 to your computer and use it in GitHub Desktop.
OctoberCMS .gitignore
# ------------------------------------------------------------------------------
# .gitignore for OctoberCMS (http://octobercms.com/)
# Based on https://gist.github.com/salcode/b515f520d3f8207ecd04 for WordPress
# ------------------------------------------------------------------------------
# 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}/
# Or ignore this too and add specific plugins at the bottom
#plugins/{AUTHOR}/*
# Miscellaneous rules
## Ignore node depenencies
node_modules/
## Ignore log files and databases
*.log
*.sql
*.sqlite
## Ignore packaged files
*.dmg
*.gz
*.iso
*.img
*.jar
*.rar
*.tar
*.zip
# Whitelist rules
## Misc
!.gitignore
!.editorconfig
!composer.json
!package.json
## Themes
!themes/besttheme/
## Plugins
!plugins/{AUTHOR}/private-plugin-one/
!plugins/{AUTHOR}/private-plugin-two/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment