Advertisement
srikat

Untitled

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