What will be the most suitable settings in .gitignore file for Wordpress project? [closed]
This is from GitHub's help files:
*.log.htaccesssitemap.xmlsitemap.xml.gzwp-config.phpwp-content/advanced-cache.phpwp-content/backup-db/wp-content/backups/wp-content/blogs.dir/wp-content/cache/wp-content/upgrade/wp-content/uploads/wp-content/wp-cache-config.php
Posting this as an answer because it seems I can't comment on answers.
I suggest the following (based on Dales answer):
.htaccesswp-config.phpwp-content/*!wp-content/themes/!wp-content/plugins/sitemap.xml*.logsitemap.xmlsitemap.xml.gz
What it does is that it first ignores everything within wp-content but then makes exceptions for the wp-content/themes/ and wp-content/plugins/ folders.