Skip to content

Instantly share code, notes, and snippets.

@brianzelip
Created February 26, 2020 20:33
Show Gist options
  • Select an option

  • Save brianzelip/70b0b4e9ecc1889d8f19560a430e43a3 to your computer and use it in GitHub Desktop.

Select an option

Save brianzelip/70b0b4e9ecc1889d8f19560a430e43a3 to your computer and use it in GitHub Desktop.
WordPress git ignore
# 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
@brianzelip
Copy link
Author

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