Skip to content
Development

Free Git GUI options for WordPress developers

Which free Git GUI to pick for WordPress work, what to keep out of version control, and a simple workflow for themes and plugins.

By WP24×7 engineers5 min readPublished August 11, 2020Updated November 29, 2026

At a glance

A Git GUI makes history, diffs and branches visible, but for WordPress work the client matters less than what you commit. Track your own theme, child theme and plugins; keep core, third-party plugins, uploads and wp-config.php out. Use a branch per task, review the diff before each commit, deploy to staging first, and remember Git does not track the database.

Updated November 29, 2026 · For WordPress developers

  • For WordPress developers working on themes and plugins
  • Free clients Sourcetree, GitHub Desktop, editor built-ins
  • Track your theme, child theme and custom plugins
  • Do not track core, third-party plugins, uploads, wp-config.php
  • Workflow branch per task, review diff, staging then live
  • Limit Git does not track the WordPress database
  • Help WP24x7 builds development pipelines on request

A Git client turns version history into something you can see: files changed, a side-by-side diff and a branch graph. For WordPress work, pick any free client you like, then spend your effort on what to put in the repository.

Why use Git for WordPress at all?

Git records every change to code you wrote, lets you undo a bad one, and gives you a safe way to try something on a branch. It also lets a second developer help without overwriting your files, and makes deploying a known version repeatable. None of that depends on a particular app.

Which free Git GUI should I use?

The command line always works, and many developers use a mix.

ClientStrengthWatch out for
SourcetreeVisual branch graph, stash and rebase; free on Windows and macOSNeeds an Atlassian account to set up
GitHub DesktopSimple, easy path to GitHubLess advanced for complex history
Editor built-ins (VS Code, JetBrains)Staging, diff, commit and branches without another appFewer history tools
GitKrakenPolishedCheck which features need a paid plan
Fork, Tower, Sublime MergeFast and well regardedSome are paid or have trial limits

Features vary between versions, so check each tool's current page. The choice rarely matters as much as three habits: commit small, write clear messages, and use branches.

What should go in the repository?

Track code you write. For a typical project that is a custom theme or child theme folder, a custom plugin folder, or a project with build tooling plus wp-content/themes/your-theme and wp-content/plugins/your-plugin.

CommitKeep out
Custom theme or child themeWordPress core (updated through WordPress or WP-CLI)
Custom pluginsThird-party plugins and parent themes
Build tooling and source fileswp-content/uploads
README and deploy configwp-config.php (database passwords, secret keys)
Caches, backups and logs

A .gitignore for a theme repository might include:

node_modules/
vendor/
.env
*.log
.DS_Store

What is a simple workflow?

  1. Create a repository for your theme or plugin.

  2. Make a branch for each task, for example fix-menu-spacing.

  3. Work on a local copy of the site, not the live server.

  4. Review the diff before every commit. Remove debug code and stray changes.

  5. Commit with a message that says why: "Stop price filter running twice on variable products".

  6. Merge into the main branch and deploy to staging first, then live.

If something breaks, you can see which commit caused it and revert that one change.

Branches merged into one tested version before deploy

How do I deploy from Git?

Fine for small sites, but needs care with file ownership.

Whatever you use, deploy to a staging copy first and keep a backup, because a bad deploy can break a live site faster than a typo in the dashboard. See backups and restore testing.

What about the database?

Git tracks files, not the database, and WordPress keeps content, settings and much configuration there. Pages, menus, WooCommerce products and many plugin settings do not travel with your code. Use a migration plugin, wp db export from WP-CLI, or your host's staging push, and be careful not to overwrite live orders and user accounts when copying a database back.

What does a sensible project layout look like?

For a theme with a build step:

my-theme/
  .gitignore
  package.json
  src/            # source CSS and JavaScript
  assets/         # built files, ignored or committed by choice
  functions.php
  style.css
  templates/

Decide whether built files are committed. If your deploy process builds them, ignore them. If you deploy by copying the repository, commit them and say so in a README.

Which habits matter more than the app?

  • Stage in pieces. Use hunk staging or git add -p so each commit holds one idea.
  • Write messages for the reader in six months. "Fix" tells nothing; "Stop duplicate order emails when a coupon is applied" does.
  • Branch for every task, and delete branches after merging.
  • Pull before you push, and resolve conflicts with a diff view.
  • Check syntax. php -l path/to/file.php catches parse errors that would white-screen a site.
  • Tag releases, such as v1.4.0, to mark exactly what went live.

Common mistakes with Git on WordPress

  • Committing wp-config.php or a .env file with secrets.
  • Committing a large uploads folder and making the repository slow forever.
  • Editing code directly on the live server, then overwriting it on the next deploy.
  • Working on the main branch with no review.
  • Treating a database change as if Git tracked it.
  • Force-pushing over a teammate's work. Avoid --force on shared branches.

Do I need a paid tool, or help with the pipeline?

Not for what is described here: every client above handles branches, diffs and merges for free. If your team needs staging, deploys and testing set up properly, our WordPress development team builds and maintains them, and theme development projects start with this setup.

Want a proper development pipeline?

Staging, deploys and testing, set up and maintained for your site.

FAQ

Questions people ask

12 answers. Can't find yours? Ask an engineer.

Do I need a Git GUI to use Git?

No. The command line does everything. A GUI makes history, diffs and staging easier to see, which helps when you are learning or reviewing changes.

Link to this answer
Should I put my whole WordPress site in Git?

Usually no. Track your own theme, child theme and plugins. Leave WordPress core, third-party plugins, uploads and wp-config.php out.

Link to this answer
Is Sourcetree still worth using?

It is a capable free client, but the best choice is the one you will use consistently. Check current platform support, since tools change.

Link to this answer
How do I undo a commit I already pushed?

Use git revert to make a new commit that undoes it. Avoid rewriting shared history with force-push, because it can overwrite other people's work.

Link to this answer
What should I put in .gitignore for a theme?

Typically node_modules, vendor, .env, log files and .DS_Store. Never commit credentials or API keys, and if one slips in, change it straight away because deleting the file later does not remove it from history.

Link to this answer
Does Git track my WordPress database?

No. Pages, menus, WooCommerce products and many plugin settings live in the database and do not travel with your code. Use a migration plugin, WP-CLI wp db export or a host staging push, and avoid overwriting live orders and users.

Link to this answer
How do I deploy a theme from Git?

From simple to robust: pull on the server over SSH, use a service or GitHub Actions that copies files over SFTP or rsync, or use a managed host with Git deployment. Deploy to staging first and keep a backup.

Link to this answer
Should built CSS and JavaScript files be committed?

If your deploy process builds them, ignore them. If you deploy by copying the repository, commit them and note it in a README so nobody edits the built copy by mistake.

Link to this answer
How can I catch PHP errors before committing?

Run php -l on the file. It catches parse errors that would white-screen a site. Also review the diff in your client to remove debug code and stray changes.

Link to this answer
Why use branches for WordPress work?

A branch per task, such as fix-menu-spacing, lets you try changes safely, review them, and revert one commit if something breaks later. Delete branches after merging.

Link to this answer
Do I need a paid Git tool?

Not for the workflow described here. Paid tiers usually add team features, integrations or priority support, so look at them only if you need those.

Link to this answer
What is the most common Git mistake on WordPress sites?

Committing wp-config.php or a .env file with secrets. Others are committing a huge uploads folder, editing code directly on the live server, and force-pushing over a teammate's work.

Link to this answer

Keep reading

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.