Advertisement
srikat

Untitled

May 2nd, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 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. !wp-content/backup-db/
  36.  
  37. # ignore all mu-plugins and themes
  38. # unless explicitly whitelisted at the end of this file
  39. wp-content/mu-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. *.sqlite
  61.  
  62. # ignore compiled files
  63. *.com
  64. *.class
  65. *.dll
  66. *.exe
  67. *.o
  68. *.so
  69.  
  70. # ignore packaged files
  71. *.7z
  72. *.dmg
  73. *.gz
  74. *.iso
  75. *.jar
  76. *.rar
  77. *.tar
  78. *.zip
  79.  
  80. # -------------------------
  81. # BEGIN Whitelisted Files
  82. # -------------------------
  83.  
  84. # track these files, if they exist
  85. !.gitignore
  86. !.editorconfig
  87. !README.md
  88. !CHANGELOG.md
  89. !composer.json
  90. !.htaccess
  91. !.sql
  92.  
  93. # track favicon files, if they exist
  94. !android-chrome-*.png
  95. !apple-touch-icon*.png
  96. !browserconfig.xml
  97. !favicon*.png
  98. !favicon*.ico
  99. !manifest.json
  100. !mstile-*.png
  101. !safari-pinned-tab.svg
  102.  
  103. # track these mu-plugins, plugins, and themes
  104. # add your own entries here
  105. !wp-content/themes/altitude-pro/
  106. !wp-content/uploads/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement