SourceGit rescued me from Sourcetree
3 min read

SourceGit rescued me from Sourcetree

SourceGit rescued me from Sourcetree

Are you a software developer who is plagued by the frequent Sourcetree crashes or by its insatiable appetite for RAM? People keep telling you to just use the damn terminal but you prefer the visibility of Sourcetree when it comes to branches, merges, diffs and staged files? Are you me reading this in the future? The solution is simple: just switch to SourceGit!

Please bear with me for a while. I promise this is not an advertorial but honest praise from someone who fell in love with SourceGit after just a couple of hours. While its interface looks somewhat different from Sourcetree's, I was able to learn it fast (and by myself!), since it's intuitive.

It does have its share of bells and whistles too, but this post is addressed to users who just want quick, clean access to the basics: branches, diffs, merges and commits, in a visual fashion.

Let's start with the branches. Sourcetree users will find a similar interface: a list on the left, with the branches grouped by "folders". Local branches are at the top, and Remotes are below (note: the screenshots are from one of my open-source repos, for the website candeliber.com, so all the data visible should already be public).

For each commit you can see the changes, with a clear diff, or you can switch to the "Files" tab (like in the previous screenshot), where you see them organized accordion-style. For me, this is useful when reviewing older commits, to see exactly what changed and where. I know you can do this via the terminal too but for some changes I find it quicker like this.

Diffs are also very similar to Sourcetree's. You can see the changes directly in SourceGit, where you can also Stage or Discard them at a block level. While it doesn't have Sourcetree's quick checkboxes to stage an entire file, you can achieve the same result by clicking on the caret-down button while the file is selected. The double-caret-down button stages everything.

You can also merge from the branches list, just like in Sourcetree. You select the appropriate branch, right-click and then choose Merge.

You also have Workspaces (which I won't screenshot, since they contain private repos and setups), and they work much, much better than the previous setup I had with Sourcetree, which opened a new window for each repo.

And the best thing about it? This part:

That's my current top list of processes and the RAM consumed by each. Notice anything there? SourceGit is not present! I have to scroll a little to see it and it stands out so much in contrast with Sourcetree, which used to eat up to 3-4 GB of RAM and was responsible for periodic restarts.

Give it a shot! SourceGit is free, open source and has versions for Windows, Linux and macOS (the one I'm using). It's a real shame it's not more popular. I didn't find it in any of the Sourcetree alternatives articles or discussions that I read, and it deserves to be better known, if you ask me.