ultraloveninja
ultraloveninja

Reputation: 2139

Pulling/Tracking changes on live Wordpress site with Git

I've just completed a Wordpress site revamp for a client and I've implemented using git to work locally then deploy to a dev/testing server and then deploy to a live/production server using Beanstalk.

Since I used Wordpress as a CMS, I've allowed the client access to update the site.

But if I need to make changes to the template files, how do I go about tracking the updated files from the live site and then pull them down to my local branch?

Like I said, I'm using Beanstalk, so I'm not sure if I have to /need to go through that or if I can SSH and just pull or fetch the files from there via the command line.

I've search through some other questions and I read about git-up: Can "git pull --all" update all my local branches?

But I'm not sure if I need to implement that before I pushed it out to production or what.

Upvotes: 0

Views: 114

Answers (1)

Christopher Ellis
Christopher Ellis

Reputation: 1116

To use git properly, your client should clone the repository, commit the changes, and push back to your repository. Thus, changes are tracked by git. Here is a great tutorial to get moving quickly with git.

As for using beanstalk, if it works for you great, but if you know the command line then you are less dependent and restricted to always have to have access to beanstalk.

EDIT: The link you provided is complicated for a beginner in git. I suggest you spend sometime on tutorials first.

Hopefully my briefness and the link will help you.

Upvotes: 1

Related Questions