Reputation: 185
Hi People I'm new to git, i just want to have an answer or a clarification regarding, how does git works with WordPress.
At the moment i install git in my wordpress, base on my understanding git is version control and it tracks all changes to the website? but unfortunately, I tried to make a test in wordpress, 1st -
I installed and activate plugins and I can track it through in my sourcetree,
I created 5 published pages but I can't see changes in my sourcetree, does git tracks created pages or posts in wordpress? or are there any ways to track pages and posts in wordpress using GIT?
Thank you.
Upvotes: 0
Views: 132
Reputation: 2552
The wordpress content (pages, posts) are stored inside database and git is not meant to track database changes. It is generally used to track coding (file) changes. Check official guide, it will clarify git concept as well include some usage examples.
Although, there is a way to track db changes using GIT but that's way complex and have some setup requirements so you can simply take it as, "No, you can't track pages using GIT".
Upvotes: 1