Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. # -----------------------------------------------------------------
  2. # .gitignore for WordPress (based on original from @salcode)
  3. #
  4. # By default all files are ignored. You'll need to whitelist
  5. # any mu-plugins, plugins, or themes you want to include in the repo.
  6. #
  7. # To ignore uncommitted changes in a file that is already tracked, use
  8. # git update-index --assume-unchanged
  9. #
  10. # To stop tracking a file that is currently tracked, use
  11. # git rm --cached
  12. #
  13. # Change Log:
  14. #
  15.  
  16. # ignore everything in the root except the "wp-content" directory.
  17. /*
  18. !wp-content/
  19.  
  20. # ignore everything in the "wp-content" directory, except:
  21. # mu-plugins, plugins, and themes directories
  22. wp-content/*
  23. !wp-content/mu-plugins/
  24. !wp-content/plugins/
  25. !wp-content/themes/
  26.  
  27. # ignore all plugins, and themes
  28. # unless explicitly whitelisted at the end of this file
  29. # uncomment the below if you want to ignore all mu-plugins by default
  30. # wp-content/mu-plugins/*
  31. wp-content/plugins/*
  32. wp-content/themes/*
  33.  
  34. # ignore all files starting with . or ~
  35. .*
  36. ~*
  37.  
  38. # ignore node dependency directories (used by grunt)
  39. node_modules/
  40.  
  41. # ignore OS generated files
  42. ehthumbs.db
  43. Thumbs.db
  44. .DS_Store
  45.  
  46. # ignore Editor files
  47. *.sublime-project
  48. *.sublime-workspace
  49. *.komodoproject
  50.  
  51. # ignore log files and databases
  52. *.log
  53. *.sql
  54. *.sqlite
  55.  
  56. # ignore compiled files
  57. *.com
  58. *.class
  59. *.dll
  60. *.exe
  61. *.o
  62. *.so
  63.  
  64. # ignore packaged files
  65. *.7z
  66. *.dmg
  67. *.gz
  68. *.iso
  69. *.jar
  70. *.rar
  71. *.tar
  72. *.zip
  73.  
  74. # -------------------------
  75. # BEGIN Whitelisted Files
  76. # -------------------------
  77.  
  78. # track these files, if they exist
  79. !.gitignore
  80. !.editorconfig
  81. !README.md
  82. !CHANGELOG.md
  83. !composer.json
  84. !package.json
  85.  
  86. # track favicon files, if they exist
  87. !android-chrome-*.png
  88. !apple-touch-icon*.png
  89. !browserconfig.xml
  90. !favicon*.png
  91. !favicon*.ico
  92. !manifest.json
  93. !mstile-*.png
  94. !safari-pinned-tab.svg
  95.  
  96. # track these mu-plugins, plugins, and themes
  97. # add your own entries here
  98. wp-content/plugins/zf-*
  99. wp-content/plugins/h1-*
  100. !wp-content/plugins/example-plugin/
  101. !wp-content/themes/example-theme/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement