Skip to content

Instantly share code, notes, and snippets.

@Committing
Last active May 6, 2023 02:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Committing/7bd55ff4615248b7cea0 to your computer and use it in GitHub Desktop.
Save Committing/7bd55ff4615248b7cea0 to your computer and use it in GitHub Desktop.
.hgignore specifically for Wordpress
# Compiled by Jack (Committing)
# https://gist.github.com/Committing/7bd55ff4615248b7cea0
# GIT version: https://gist.github.com/Committing/24700559b3c05bdd2e3921c12c16f134
#################################
## Target root files/folders
#################################
syntax: regexp
^license.txt
^readme.html
^wp-activate.php
^wp-blog-header.php
^wp-comments-post.php
^wp-config-sample.php
^wp-cron.php
^wp-links-opml.php
^wp-load.php
^wp-login.php
^wp-mail.php
^wp-settings.php
^wp-signup.php
^wp-trackback.php
^xmlrpc.php
^index.php
#### Track all files in plugins except ones that end with "_ab.php"
wp-content/plugins/(?!.*\_ab.php$).+
#################################
## Target global files/folders
#################################
syntax: glob
build-assets
nbproject
nbproject_old
wp-includes
wp-admin
wp-content/index.php
wp-content/debug.log
wp-content/sunrise.php
wp-content/languages
wp-content/uploads
wp-content/debug.log
wp-content/themes/index.php
wp-content/themes/twentyfourty
wp-content/themes/twentythirtynine
wp-content/themes/twentythirtyeight
wp-content/themes/twentythirtyseven
wp-content/themes/twentythirtysix
wp-content/themes/twentythirtyfive
wp-content/themes/twentythirtyfour
wp-content/themes/twentythirtythree
wp-content/themes/twentythirtytwo
wp-content/themes/twentythirtyone
wp-content/themes/twentythirty
wp-content/themes/twentytwentynine
wp-content/themes/twentytwentyeight
wp-content/themes/twentytwentyseven
wp-content/themes/twentytwentysix
wp-content/themes/twentytwentyfive
wp-content/themes/twentytwentyfour
wp-content/themes/twentytwentythree
wp-content/themes/twentytwentytwo
wp-content/themes/twentytwentyone
wp-content/themes/twentytwenty
wp-content/themes/twentynineteen
wp-content/themes/twentyeighteen
wp-content/themes/twentyseventeen
wp-content/themes/twentysixteen
wp-content/themes/twentyfifteen
wp-content/themes/twentyfourteen
wp-content/themes/twentythirteen
wp-content/themes/ab/node_modules
wp-content/plugins/index.php
wp-content/plugins/hello.php
wp-content/plugins/akismet
wp-content/themes/*/gulp/node_modules
*.orig
*.dat
._*
.sass-cache
*.pyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment