Skip to content

Instantly share code, notes, and snippets.

@slavapas
Created October 14, 2020 19:04
Show Gist options
  • Save slavapas/f9b9e3234073ad16c2dea27a5e7c63c8 to your computer and use it in GitHub Desktop.
Save slavapas/f9b9e3234073ad16c2dea27a5e7c63c8 to your computer and use it in GitHub Desktop.
.gitignore for GIT in WordPress
/*
!wp-content/
.*
!.gitignore
!readme.md
~*
ehthumbs.db
Thumbs.db
.idea
.DS_Store
*.sublime-project
*.sublime-workspace
*.komodoproject
*.log
*.sql
*.sqlite
*.com
*.class
*.dll
*.exe
*.o
*.so
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
# игнорим плагины, если хотим отслеживать, то разкомментим строку ниже
#!wp-content/plugins/
!wp-content/themes/
# игнорим конкретные плагины, если разкомменчена строка !wp-content/plugins/
#wp-content/plugins/hello.php
#wp-content/plugins/index.php
wp-content/themes/savoy/
wp-content/themes/index.php
node_modules/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment