Skip to content

Instantly share code, notes, and snippets.

@tangoabcdelta
Created December 20, 2022 05:22
Show Gist options
  • Save tangoabcdelta/93765bfc6cf615680e2333fb57907ec2 to your computer and use it in GitHub Desktop.
Save tangoabcdelta/93765bfc6cf615680e2333fb57907ec2 to your computer and use it in GitHub Desktop.
git-crypt: command not found error thrown while launching source tree
  • Go to SourceTree > Preferences > Git > Git Version (section)

  • Select "Reset to Embedded Git"

  • Note: Do not use the system version of git

  • Now you need to add path of git-crypt as a symlink

  • From https://jira.atlassian.com/browse/SRCTREE-2511 : The easiest solution would be to symlink git-crypt1 to the same location as your git` binary due to variations in how to configure (per major OS revision)

  • Locate your SourceTree installation directory

  • Locate the embedded git path. This is usually /Applications/Sourcetree.app/Contents/Resources/git_local/bin/

  • Run which git-crypt

  • Copy the path

  • Create a symlink from the git-crypt location to the SourceTree directory like the following:

sudo ln -s /opt/homebrew/bin/git-crypt /Applications/Sourcetree.app/Contents/Resources/git_local/bin/git-crypt

Now, restart sourcetree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment