Skip to content

Instantly share code, notes, and snippets.

@TheHeat
Created February 14, 2024 12:37
Show Gist options
  • Save TheHeat/cdb50669d22ea3de594d32e14563a37a to your computer and use it in GitHub Desktop.
Save TheHeat/cdb50669d22ea3de594d32e14563a37a to your computer and use it in GitHub Desktop.
Prevent Local from pushing core or dev files to WP Engine
# This file lists which files should not be pushed by WPE DevKit. Feel free to
# add, remove, or comment lines to change the sync behavior, but note that this
# file will be recreated with the default values if it is missing. There are a
# few additional files, including wp-config.php, which are ignored no matter
# what as synchronizing these files would almost certainly result in an unusable
# install.
# Temporary and OS files
*~
.DS_Store
*.swp
Thumbs.db
# Version Control files
*.bak
.svn
.cvs
.git
*/**/.github/
*/**/node_modules/
# WordPress specific files
# NOTE:
# WP Engine automatically updates part or all of WordPress under certain
# circumstances, so generally it is desirable to not push local copies of the
# WordPress files to a production server. However, in case you do have some
# specific need to push local changes to production, you can comment out these
# lines.
wp-config.php
wp-admin/
wp-includes/
license.txt
apple-touch-icon-precomposed.png
apple-touch-icon.png
favicon.ico
index.php
local-xdebuginfo.php
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-config.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment