Knowledge for the World
Set up shortcuts to your SourceTree repos using Alfred (an installable workflow)

Set up shortcuts to your SourceTree repos using Alfred (an installable workflow)

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.

1

Alfred is an amazing workflow management app for OS X. 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.

2

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.

3

Install the workflow

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

4

Using the workflow

Opening a specific repo - the shortcut to use is "st repo_name":
st howchooListing all repos - the shortcut to use is "st" (no argument provided):
st