Advertisement
AmourSpirit

.gitignore sample wordpress site

Oct 20th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. # Ignore everything
  2. # https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files
  3. /*
  4.  
  5. # But not these files...
  6. !.gitignore
  7. !.gitconfig
  8. !ssl.ca
  9. !ssl.cert
  10. !ssl.combined
  11. !ssl.everything
  12. !.stats-htpasswd
  13. # Ignore all files ending with .log
  14. **.log
  15.  
  16. # Whitelist folders
  17. # trailing "/" is optional for folders, may match file though.
  18. # "/" is NOT optional when followed by a *
  19. !public_html/
  20. !public_html/*
  21.  
  22. # black list folders
  23. public_html/.well-known/
  24. public_html/**/.git/
  25. public_html/awstatsicons/
  26. public_html/awstats-icon/
  27. public_html/cache/
  28. public_html/stats/
  29. public_html/tmp/
  30. public_html/wp-content/uploads/wc-logs/
  31. public_html/icon/
  32. public_html/logs/
  33. public_html/log/
  34. public_html/wp-content/cache/
  35. public_html/wp-content/uploads/grid-gallery/cache/
  36. public_html/wp-content/wflogs/
  37. public_html/wp-content/uploads/gravity_forms/logs/
  38.  
  39. # black list files
  40. **/error_log
  41. public_html/wp-config.php
  42. public_html/**/.gitignore
  43. public_html/**/*.lock
  44. public_html/**/*.tgz
  45. public_html/**/*.zip
  46. public_html/**/*.tar
  47. public_html/**/*.bz2
  48. public_html/**/*.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement