I have a team member using Windows and SourceTree to clone a repo that has git lfs. The repo was cloned fine but when downloading/pulling the lfs files SourceTree returns
Git credentials for http://xx not found
when running git lfs pull
within git bash the same thing occurs as well as
exec: "C:/Users/Dan/AppData/Local/Atalssian/SourceTree/git_local/mingw32/libexec/git-core/git-gui--askpasss": file does not exist
They've added their credentials to SourceTree but still no luck. I helped another team mate, they were able to pull the lfs files using the same procedure.
How can I pull lfs data and have git bash or SourceTree prompt for a password and username?
You system has an invalid GIT_ASKPASS
value. Correct that, and it'll prompt for your password. Remove it, and LFS will try another method for getting your password.
Also, LFS 2.3.1 had a bug where GIT_ASKPASS
settings were preferred over a configured Git credential helper. LFS v2.3.2 fixed this. So, setting up a git credential helper will solve this too.
You may want to reach out to the SourceTree team. I'm pretty sure it bundles Git LFS, and may have some special config settings that I don't know about.
Thanks @technoweenie for the info. We managed to pull the lfs files by deleting the passwrd file in the git install directory. Although, now we having an issue with resolving lfs conflicts by
git checkout --theirs "path/to/fil"
output still returns Git credentials for http://xx not found
We also found that there wasn't a GIT_ASKPASS environment variable to begin with. Pulling works just fine but we're unable to resolve conflicts.
I think bitbucket has some issues with their implementation of the lfs api. This comment has a workaround:
https://github.com/git-lfs/git-lfs/issues/2658#issuecomment-335508700