Spunk Autos

Websites and web tools

Git commands vs everything else for tracking site changes

Many small business websites are changed by copying folders, editing files over FTP, or relying on a CMS's revision list. This page compares those habits with Git, shows what each one can and cannot undo, and lists the few commands you need to run a shop or detailer site from a repository.

What each method can do
MethodFull historyUndo one changeWork in parallelShows who changed what
Copied folders (site-final-v2)PartialHardNoNo
File sync folderShort windowPer file onlyConflictsSometimes
CMS revisionsContent onlyPer pageLimitedYes
FTP edits on the serverNoneNoNoNo
GitYesYesBranchesYes

Why copied folders fail

Folder copies record a moment, not a change. When something breaks, you must compare whole folders by hand to find what differs. Names such as final, final-2 and final-real drift out of order, and nobody knows which one matches the live site.

Where CMS history is enough

If the site is a hosted CMS and you only edit page text, its revision list may cover you. It usually does not track theme code, redirects or settings. Once a site has template files or a build step, those need Git.

The commands that matter

CommandWhat it does
git init or git clone URLStart a repository or copy an existing one
git statusShow changed, staged and untracked files
git diffShow line-by-line changes not yet staged
git add FILEStage a file for the next commit
git commit -m "message"Record the staged change with a note
git log --onelineList past commits briefly
git switch -c NAMECreate and move to a new branch
git revert HASHAdd a commit that undoes an earlier one
git pull and git pushSync with the shared remote copy

A simple routine for a small site

  1. Pull before you start, so you work on the latest version.
  2. Make one focused change, such as new winter tire prices on the service page.
  3. Check git diff to see exactly what changed.
  4. Commit with a message that says why, not just what.
  5. Push, then check the live site after it deploys.

Things Git does not do

  • Back up the database; export it separately.
  • Store large photo libraries well; keep originals in storage built for files.
  • Keep secrets safe; never commit passwords or API keys, and use a .gitignore file for env files.
  • Replace a CMS for staff who only edit text; they can keep using the editor.

The point is not that Git beats every method in every case. It is that once a site has code, Git is the only option in the table that answers the three questions you ask after a mistake: what changed, who changed it, and how do I put it back.