Skip to content

Instantly share code, notes, and snippets.

@modemlooper
Created May 14, 2019 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modemlooper/c7b01442eb2a5a3ea73526148cde93b7 to your computer and use it in GitHub Desktop.
Save modemlooper/c7b01442eb2a5a3ea73526148cde93b7 to your computer and use it in GitHub Desktop.
gitignore wp-content
# -----------------------------------------------------------------
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
#
# To ignore uncommitted changes in a file that is already tracked, use
# git update-index --assume-unchanged
#
# To stop tracking a file that is currently tracked, use
# git rm --cached
#
# -----------------------------------------------------------------
# ignore everything in the root except the "wp-content" directory.
# ignore everything in the "wp-content" directory, except:
# mu-plugins, plugins, and themes directories
/*
!mu-plugins/
!plugins/
!themes/
# ignore all mu-plugins, plugins, and themes
# unless explicitly whitelisted at the end of this file
mu-plugins/*
plugins/*
themes/*
# ignore all files starting with . or ~
.*
~*
# ignore node dependency directories (used by grunt)
node_modules/
# 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
# -------------------------
# BEGIN Whitelisted Files
# -------------------------
# track these files, if they exist
!.gitignore
!.editorconfig
!.phpcs.xml.dist
!README.md
!CHANGELOG.md
!composer.json
# track favicon files, if they exist
!android-chrome-*.png
!apple-touch-icon*.png
!browserconfig.xml
!favicon*.png
!favicon*.ico
!manifest.json
!mstile-*.png
!safari-pinned-tab.svg
!site.webmanifest
# track these mu-plugins, plugins, and themes
# add your own entries here
!themes/theme-folder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment