Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Encountering 'git lfs install' error when opening my project with SourceTree, how can I resolve

黄宁源
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2024

My project has a custom prehook that I cannot remove. I would like SourceTree not to automatically call 'git lfs install', or at least not to display an error pop-up after calling it.

 

企业微信截图_91170d2e-d551-4bc9-8d70-d889956a2c23.png

1 answer

0 votes
Martin Runge
Community Champion
June 16, 2026

Hi @黄宁源

Welcome to the Atlassian Community!

I suggest resolving this conflict by configuring Git to ignore local hook management with the command: git config --local sourcetree.hooks.manage false within that repository. This prevents Sourcetree from running its automated git lfs install on startup, silences the error pop-up, and preserves your custom pre-hook script.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events