Skip to content

Instantly share code, notes, and snippets.

@jstnbr
Last active January 18, 2020 23:13
Show Gist options
  • Save jstnbr/922fe6477e1413325b93f082e9f90bfe to your computer and use it in GitHub Desktop.
Save jstnbr/922fe6477e1413325b93f082e9f90bfe to your computer and use it in GitHub Desktop.
A gitignore file for WordPress
/*
~*
.*
*.sass-cache
*.log
*.sql
*.sqlite
*.com
*.class
*.dll
*.exe
*.o
*.so
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
bower_components
node_modules
thermal
sitemap.xml
[Tt]humbs.db
wp-content/*
wp-content/themes/twenty*
!.editorconfig
!.gitignore
!composer.json
!readme.md
!android-chrome-*.png
!apple-touch-icon*.png
!browserconfig.xml
!favicon*.png
!favicon*.ico
!manifest.json
!mstile-*.png
!safari-pinned-tab.svg
!site.webmanifest
!wp-content/
!wp-content/themes/
@jstnbr
Copy link
Author

jstnbr commented Jan 18, 2020

I added a line for thermal. Thermal is a project I made that helps syncing WordPress. It helps to keep that line, especially if you use Thermal, but it's optional. Everything else should be standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment