Skip to content

Instantly share code, notes, and snippets.

@FullStackForger
Forked from salcode/.gitignore
Last active March 30, 2016 04:29
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save FullStackForger/d915d8b430fef748f966 to your computer and use it in GitHub Desktop.
Save FullStackForger/d915d8b430fef748f966 to your computer and use it in GitHub Desktop.
Wordpress .gitignore file
# -----------------------------------------------------------------
# Minimalistic .gitignore for WordPress
#
# To get this file rub bellow wget command from project root directory
# wget -O .gitignore https://gist.github.com/indieforger/d915d8b430fef748f966/raw
#
# 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 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
# IntelliJ IDEA files
.idea/
*.iml
# osx specific files
*~
*.lock
*.DS_Store
*.swp
*.out
._*
*.swp
*.swo
*.swn
# ignore log files
*.log
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# ignore everything in the "wp-content" directory, except:
# "mu-plugins" directory
# "plugins" directory
# "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ignore these plugins
wp-content/plugins/hello.php
# ignore node/grunt dependency directories
node_modules/
# ignore wp-config file as it stores password
wp-config.php
@fadsel
Copy link

fadsel commented Aug 2, 2015

good one 👍

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