In my case, and that of a colleague, this alone doesn’t solve the problem. After changing the Git preference to system and restarting Sublime Merge (or even macOS), Sublime Merge is still unable to perform basic Git commands like staging files that aren’t tracked by Git LFS.
On the command line, I am running:
$ git --version
git version 2.35.1
$ which git
/opt/homebrew/bin/git
$ which git-lfs
/opt/homebrew/bin/git-lfs
$ echo $PATH
/Users/paul/.rbenv/shims:/Users/paul/.rbenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/paul/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
Yet when I retrieve Sublime Merge’s Help › Debug Information, it shows a different Git version & a different PATH:
=== App Version Information ===
Build: 2068
=== Git Version Information ===
Using Git: git (system)
git version 2.32.0 (Apple Git-132)
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin (from shell)
environment variables loaded using: /bin/zsh -l
In my current .zshrc
I change the PATH to add Sublime Text’s bin dir — I didn’t add anything related to git-lfs. However, the path in the Debug Information doesn’t match that of my PATH env var, so perhaps I am misinterpreting what it represents.
(I’m running Oh My ZSH, if that helps diagnosing the problem)