Blog
Git guides, comparisons and tips
Practical guides to Git and Git GUIs, and sourced comparisons of the desktop Git clients developers use, from the team behind GitTree.
Explore the articlesFeatured
How to install and use git gui and gitk on Ubuntu, Debian, Fedora and Arch
git gui is the commit tool that comes with Git, and gitk is its history viewer. On Linux both live in separate packages. Here are the install commands for each distribution, a tour of both windows, the errors you will meet and what the tools cannot do.
Read the articleExplore the articles
- Git on Linux8 min read
How to use Git on Ubuntu with a GUI: from install to your first push
Everything a new Linux user needs to work with Git in a desktop app: the right Git version for your release, an SSH key for GitHub, cloning, staging, committing, pushing, branches and merges, with screenshots and short clips of each step.
Updated
- Git guides8 min read
Git commit --amend: add changes to your last commit
Fold a forgotten file into your latest commit without adding a separate fix commit. Check what is staged, handle a pushed branch carefully and keep a way back.
Updated
- Git guides4 min read
How to set an upstream branch in Git
An upstream is the remote branch your local branch pushes to and pulls from. Here is how to set, check, change and remove one, how to fix the “no upstream branch” error, and what upstream means on a fork.
Updated
- Git basics4 min read
How to initialize a new Git repository
A folder becomes a Git repository with one command. Here is the full path from git init to your first push, how git init differs from git clone, and how to fix the mistakes people make at the start.
Updated
- Git guides4 min read
How to abort a Git merge or rebase
A merge stopped on conflicts and you want out. git merge --abort takes you back to where you started. Here is the right command for every stopped operation, what each one keeps, and what to do once it has already finished.
Updated
- Git guides4 min read
How to create and apply a patch in Git
A patch carries changes between repositories as a plain text file. Here is when to use git diff or git format-patch, when to use git apply or git am, and how to fix a patch that refuses to apply.
Updated
- Git guides4 min read
How to use git diff: commits, branches, files and side by side
One command compares your working folder, the staging area, commits, branches and tags. Here is which form to use for each, why two dots and three dots differ, and how to get a real side-by-side diff.
Updated
- Git guides6 min read
Git reset --hard, --soft and --mixed: what changes and what stays
Choose a reset mode by checking the branch, index and working files separately. Tested examples show what you keep, what you discard and how to recover a previous commit.
Updated
- Git guides4 min read
How to discard local changes and remove untracked files in Git
Three different commands clear three different kinds of change. Here is how to throw away edits, staged changes and new files, one file or everything, and how to preview it first so nothing important goes with them.
Updated
- Git guides4 min read
How to merge one Git branch into another
Merging takes two commands, but the direction trips people up, and Git may fast-forward or create a merge commit. Here is the exact sequence, what fast-forward means, and which option to use when.
Updated
- Git on Linux4 min read
Git Tower for Linux: is there one, and what to use instead
Tower has no Linux version. Here is what its official pages list, what Tower users tend to miss on Linux, and which Git clients cover the same ground on Ubuntu, Debian and other distributions.
Updated
- Comparisons4 min read
TortoiseGit for Mac: is there one, and what to use instead
There is no macOS version of TortoiseGit, because it is built into Explorer on Windows, with no Linux version either. Here is what to expect from a Mac client, and which ones come closest to how you work now.
Updated








