Created
February 26, 2020 20:33
-
-
Save brianzelip/70b0b4e9ecc1889d8f19560a430e43a3 to your computer and use it in GitHub Desktop.
WordPress git ignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Exclude these files from the git repo | |
| wp-content/backup/* | |
| wp-content/cache/* | |
| wp-content/upgrade/* | |
| wp-content/uploads/* | |
| sitemap.* | |
| wp-config.php | |
| # Hidden system files | |
| *.DS_Store | |
| *[Tt]humbs.db | |
| *.Trashes | |
| # Include these files in previously blocked directories | |
| !wp-content/uploads/.htaccess |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
via https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/