Skip to content

Instantly share code, notes, and snippets.

@Golgarud
Last active August 8, 2018 08:34
Show Gist options
  • Save Golgarud/b4a16456acd31f63f8b08ac19c909ad0 to your computer and use it in GitHub Desktop.
Save Golgarud/b4a16456acd31f63f8b08ac19c909ad0 to your computer and use it in GitHub Desktop.
.gitignore WP
wp-content/themes/{theme-name}/css/*.css
wp-content/themes/{theme-name}/js/*min.js
# ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# ignore all files starting with .
.*
# root track
!.gitignore
!.gitattributes
!.editorconfig
!.ovhconfig
!readme.md
!license.md
!gulpfile.js
!package.json
# ignore all files that start with ~
~*
# 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
# ignore everything in the "wp-content" directory, except:
# "mu-plugins" directory
# "plugins" directory
# "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ignore these plugins
wp-content/plugins/hello.php
wp-content/plugins/akismet/*
# ignore specific themes
wp-content/themes/twenty*/
# ignore node/grunt dependency directories
node_modules/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment