When using git with WordPress project, what will be recommended settings for .gitignore file?
Leave a Reply
You must be logged in to post a comment.
When using git with WordPress project, what will be recommended settings for .gitignore file?
You must be logged in to post a comment.
This is from GitHub’s help files:
Posting this as an answer because it seems I can’t comment on answers.
I suggest the following (based on Dales answer):
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.