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.
| Method | Full history | Undo one change | Work in parallel | Shows who changed what |
|---|---|---|---|---|
| Copied folders (site-final-v2) | Partial | Hard | No | No |
| File sync folder | Short window | Per file only | Conflicts | Sometimes |
| CMS revisions | Content only | Per page | Limited | Yes |
| FTP edits on the server | None | No | No | No |
| Git | Yes | Yes | Branches | Yes |
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
| Command | What it does |
|---|---|
git init or git clone URL | Start a repository or copy an existing one |
git status | Show changed, staged and untracked files |
git diff | Show line-by-line changes not yet staged |
git add FILE | Stage a file for the next commit |
git commit -m "message" | Record the staged change with a note |
git log --oneline | List past commits briefly |
git switch -c NAME | Create and move to a new branch |
git revert HASH | Add a commit that undoes an earlier one |
git pull and git push | Sync with the shared remote copy |
A simple routine for a small site
- Pull before you start, so you work on the latest version.
- Make one focused change, such as new winter tire prices on the service page.
- Check
git diffto see exactly what changed. - Commit with a message that says why, not just what.
- 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
.gitignorefile 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.