-
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