Set up Shortcuts to Your SourceTree Repos Using Alfred (An Installable Workflow)

Set up Shortcuts to Your SourceTree Repos Using Alfred (An Installable Workflow)
Zach Zach (232)
Total time: 5 minutes 

This short guide shows you how to set up access to your SourceTree repos through Alfred. While it's easy to create custom shortcuts in Alfred, the non-tabbed nature of SourceTree makes it more difficult to set up shortcuts to your Git and Mercurial repositories. Luckily, there's an installable workflow that works great.

Posted in these interests:

alfred
PRIMARY
1 guide
git
15 guides
sourcetree
1 guide

Alfred is an amazing workflow management app for macOS. SourceTree is an amazing graphical client that allows you to interact with your Git and Hg repositories without needing to use the command line. By combining the two, you can save tons of time in your normal development workflow.

zhaocai has made an awesome installable workflow which allows you to list, search, and open your repos. Download the workflow from the alfred2-sourcetree-workflow Github page.

Install the workflow

Locate Source Tree.alfredworkflow in Finder and open it to import it into Alfred. Select a category and click "Import".

Using the workflow

Opening a specific repo - the shortcut to use is "st repo_name":

st howchoo

Listing all repos - the shortcut to use is "st" (no argument provided):

st