I use Sourcetree to do most of my diffing when I use Git. One thing that has urked me is that I’d have to always launch the application from Spotlight or Alfred when I wanted to see the state of some Git diffs. Strangely, when I tried to install Sourcetree’s commandline tools, I got the following error:
Installation failed Unable to install command line tools, please refer to the system logs for more details.
While looking for a solution to this problem, I found a simpler alternative by Philip Borenstein:
This has been annoying me for a while. Here’s a workaround that works for me: $ ln -s /Applications/SourceTree.app/Contents/Resources/stree /usr/local/bin/ I use homebrew, so /usr/local/bin is already in my path and owned by me (instead of root)
All you need to do is add the stree application to your path:
ln -s /Applications/SourceTree.app/Contents/Resources/stree ~/bin/
and you are good to go!