Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

'git lfs install' failed with code 2

I'm trying to clone my project from bitbucket with SourceTree, and after a while I'm prompted with this:



But when I click Ja (yes) I get this:


Any known solutions?

I've tried running as ST as admin. Same happens.

2 answers

Hi, I had the same error and I was able to fix it with these steps:

  1. Close Sourcetree
  2. Go to your repo folder
  3. Go to .git/hooks folder
  4. Delete post-checkout, post-commit, post-merge and pre-push files
  5. Open Sourcetree again and press the 'Yes' button to install LFS stuff. This time it should be successful.

Hope it helps.

yes, its working! thanks

I have the same issue.

LFS is not working: pushing a file (filetype is tracked for LFS) is not stored in the LFS store. (checked with 'git lfs ls-files')

When I open a terminal and manually enter the command 'git lfs install', there are no errors:
- Updated git hooks.
- Git LFS initialized.

But after closing and opening sourcetree, the messages appear again.

I found out that the issue is solved when I select the embedded Git Version, which is different from the system Git Version.

I checked the release notes for the higher versions, but I couldn't find anything related.



My problem is that someone who has the wrong version and ignores the above messages and clones the repository, LFS files are not pulled, instead the LFS pointer file is placed in the working directory.


Any help on this?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events