Skip to content

Instantly share code, notes, and snippets.

@ThomasLarge
Last active May 1, 2018 09:38
Show Gist options
  • Save ThomasLarge/21fdcad2d056a6804d09557e3fcd3164 to your computer and use it in GitHub Desktop.
Save ThomasLarge/21fdcad2d056a6804d09557e3fcd3164 to your computer and use it in GitHub Desktop.
Git WP ignore
# ignore all files starting with .
.*
# track this file .gitignore (i.e. do NOT ignore it)
!.gitignore
# track .editorconfig file (i.e. do NOT ignore it)
!.editorconfig
# track readme.md in the root (i.e. do NOT ignore it)
!readme.md
# ignore all files that start with ~
~*
# ignore OS generated files
ehthumbs.db
Thumbs.db
# ignore Editor files
*.sublime-project
*.sublime-workspace
*.komodoproject
# ignore log files and databases
*.log
*.sql
*.sqlite
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# ignore wp files
wp-admin
wp-includes
wp-content/plugins
wp-content/languages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment