Git GUI Clients
A Git GUI client is a program with windows and buttons for working with Git repositories, separate from any code editor. It shows the commit graph, branches and changes visually, and lets you stage, commit, merge and push with the mouse. Git itself comes with two simple ones, gitk (a history viewer) and git gui (a commit tool), and many others can be installed. GUI clients are used by people who prefer to see history as a picture, by designers and writers who don't use an IDE, and by developers for tasks such as browsing a complicated graph.
It is like a map app compared with written directions. Both get you to the same place; the map helps you see where you are and how the roads join.
The Main Clients
| Client | Platforms | Price (November 2026) | Good for |
|---|---|---|---|
| GitHub Desktop | Windows, macOS | Free, open source | Beginners and GitHub users: clone, commit, branch, pull requests |
| Sourcetree (Atlassian) | Windows, macOS | Free | A full-featured client, popular with Bitbucket users |
| GitKraken Desktop | Windows, macOS, Linux | Free for public repositories, paid plans for private ones | A clear graph, built-in conflict editor, works with all platforms |
| Fork | Windows, macOS | Paid, with a free evaluation | A fast, tidy client with interactive rebase |
| Tower | Windows, macOS | Paid | Professional users, strong undo features |
| lazygit | Windows, macOS, Linux | Free, open source | A full-screen client inside the terminal, driven by the keyboard |
gitk and git gui | Wherever Git runs with Tcl/Tk | Free, part of Git | Quick history browsing and committing without installing anything |
Prices and plans change; check each product's website before choosing one for a team.
gitk and git gui
Both come with Git, though some Linux distributions package them separately (for example as gitk and git-gui). They open windows, so they are shown here without output:
gitk --all
gitk -- src/FeeCalculator.java
git gui
git gui blame src/FeeCalculator.javaExplanation: gitk --all shows the commit graph of every branch, with each commit's message and diff below it; it takes the same options as git log, so gitk -- <path> shows only commits that changed a file. git gui shows unstaged and staged changes, lets you stage single lines by right-clicking them, and commits; git gui blame <file> shows who changed each line. They look old-fashioned, but they are always available, even on a server with a graphical login.
What Every Client Shows You
Whatever the client, it is drawing things you already know from the terminal:
| In the client | In Git |
|---|---|
| The graph of dots and lines | git log --oneline --graph --all |
| "Local" and "Remote" branch lists | git branch and git branch -r |
| Ahead and behind arrows | git status and git branch -vv |
| Unstaged and staged file lists | git status |
| Discard changes | git restore |
| Fetch, Pull, Push buttons | git fetch, git pull, git push |
| Undo last commit | git reset --soft HEAD~1, in most clients |
You can check any of them in the terminal at any time:
mkdir fee-tracker
cd fee-tracker
git init --quiet
echo 'Term 1 fee: $12,000' > fees.txt
git add fees.txt
git commit --quiet -m "Add the term fee"
git switch --quiet -c feature/late-fee
echo 'Late fee: $250' >> fees.txt
git commit --quiet -am "Add the late fee"
git switch --quiet main
echo 'Exam fee: $800' > exam.txt
git add exam.txt
git commit --quiet -m "Add the exam fee"
git log --oneline --graph --all* 8c4bb58 (HEAD -> main) Add the exam fee
| * 3550432 (feature/late-fee) Add the late fee
|/
* 6b651a0 Add the term feeExplanation: this is the picture a GUI client draws as colored lines: main and feature/late-fee split after "Add the term fee". The client shows the same commits, the same IDs and the same branch labels.
How to Choose
| If you... | Try |
|---|---|
| Are new to Git and use GitHub | GitHub Desktop |
| Use Bitbucket and Jira | Sourcetree |
| Want the clearest graph and work on several platforms | GitKraken Desktop or Fork |
| Live in the terminal but want a visual view | lazygit, or git log --graph |
| Need something on a machine where you can't install software | gitk and git gui |
| Already use VS Code or IntelliJ IDEA | Their built-in Git support (see "Git in VS Code and IntelliJ IDEA") |
Common Mistakes
Learning only the GUI. When something goes wrong, the buttons may not explain it, and every error message and fix online uses Git commands.
Clicking "Discard" without reading. It runs git restore or git clean, which delete uncommitted work permanently.
Using a client's force push without lease. Check that its force push uses --force-with-lease (most modern clients do, or have a setting for it).
Mixing a client's own "undo" with Git's. A client's undo history is its own; git reflog is the record that always works.
Under the Hood
Almost every GUI client runs the git program, just as IDEs do. A few (GitKraken, for example) use a Git library, such as libgit2, for some operations and call git for others. This is why a client may lag behind a brand-new Git feature, and why settings like hooks or .gitattributes filters (Git LFS) need the client to support them. gitk and git gui are scripts written in Tcl/Tk that run ordinary Git commands and draw their output.
Interview Corner
Name some Git GUI clients.
GitHub Desktop, Sourcetree, GitKraken Desktop, Fork, Tower and lazygit, plus gitk and git gui, which come with Git.
What are gitk and git gui?
Two graphical tools that ship with Git: gitk browses history (it accepts git log options, such as --all), and git gui stages and commits changes, and can show blame.
Should a developer use a GUI or the command line?
Both have a place. GUIs help to see history and review changes; the command line is needed for recovery, scripts, servers and advanced commands, and it is what error messages and documentation use.
Practice
Challenge: the graph a client would draw. In Navika's repository, merge feature/late-fee into main with a merge commit, then print the graph a GUI client would show.
What does Git print? Before you open the solution, draw the graph yourself.
Show solution
git merge --quiet --no-edit feature/late-fee
git log --oneline --graph --all* 1e46a6d (HEAD -> main) Merge branch 'feature/late-fee'
|\
| * 3550432 (feature/late-fee) Add the late fee
* | 8c4bb58 Add the exam fee
|/
* 6b651a0 Add the term feeThe merge commit joins the two lines again: one parent on main ("Add the exam fee"), the other on feature/late-fee ("Add the late fee"). A GUI client draws the same shape, usually with each branch in its own color.
Checkpoint. Install one GUI client, open a repository you know, and find in it: the current branch, the last three commits, an unstaged change, and the ahead/behind count. Then check each one with the matching Git command.
Key Takeaways
Quick reference
| Command | It is used to |
|---|---|
gitk --all | Browse every branch's history |
gitk -- <file> | Browse a file's history |
git gui | Stage and commit in a window |
git gui blame <file> | See who changed each line |
git log --oneline --graph --all | The same graph in the terminal |
Was this tutorial helpful?