Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Knowing What Changed and Being Able to Go Back
WordPress

Knowing What Changed and Being Able to Go Back

Version control for WordPress projects: what belongs in the repository, why content stays in the database, safe deployment and why solo developers need it.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Code in version control, content in the database, uploads excluded. That separation makes changes reviewable, reversible and safe to deploy.

What goes in and what does not

IncludeExclude
Custom themeWordPress core
Custom pluginsThird-party plugins (usually)
Configuration filesUploads directory
Build scriptsCredentials and keys
DocumentationCache and log files

Credentials in version control is the most common and most serious mistake here.

Why it matters for a business site

  1. You can see exactly what changed and when
  2. You can go back to a working version in minutes
  3. Two people can work without overwriting each other
  4. Deployment becomes a repeatable process rather than an FTP session
The value shows up on the day something breaks. Without history, you are guessing at what changed; with it, you can see.

Content stays in the database

Version control is for code. Content lives in the database and moves in the other direction — from live down to staging.

Trying to version content leads to conflicts nobody can resolve sensibly.

Deployment

  • Deploy from the repository, not from a developer's machine
  • Same process every time, documented
  • A backup before deploying to live
  • A verified way to roll back

It matters even for one developer

History and reversibility are useful with a team of one. The overhead is small and the first time you need to revert, it pays for itself entirely.

It also means a future developer can see what was done and why.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Is this overkill for a small site?

For a site with no custom code, arguably. For anything with a custom theme, no — it is basic professional practice.

Should third-party plugins be included?

Usually not, unless you have modified them. Track versions in a dependency file instead.

What about the database?

Backups rather than version control. It changes constantly and does not merge sensibly.

Can we adopt it on an existing site?

Yes — commit the current state as a starting point and go from there. It takes an hour.

Keep reading

More on WordPress

WordPress

Building WordPress Properly, Not Quickly

Building WordPress properly for a business that depends on its site: fewer plugins, a well-chosen theme, real content structure, speed and easy editing.

WordPress

Every Plugin Is a Decision You Live With

Plugin discipline in WordPress: five questions to ask before installing, auditing the plugins you have, which are worth keeping and removing unused ones.

Start here

Site edited directly over FTP?

That works until something breaks. Version control takes an hour to set up and saves a day eventually.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →