Skip to main content
edited tags
Link
nobody
  • 2.5k
  • 2
  • 27
  • 32
Source Link

Git beginner: Keeping track of on-server changes

So I'm starting to get to grips with Git (never used any VCS before). Some Git users tell me to only push to production server and never pull from it to my local dev server. That leaves me with this scenario.

I run WordPress 3.0 in a Multi Site environment. On the production server, I create a new blog (let's call it no. 6) from the dashboard and need a custom theme for it.

I download the db from the live server and install it locally to have the latest plugin settings, blogs etc. I install the database, tweak all the urls to match localhost. But! the folder with the new blog will be missing from the wp-content folder because I'm not syncing that folder from liveserver to devserver.

Can i, with Git, checkout the most current repo from my live server to my local machine (or something like GitHub and then ) when I need to complete a task like this? Or am I looking at it the wrong way?