-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-lfs requires extra authentication #4060
Comments
Hey, Sorry to hear you're having trouble. Can you run the operation with In addition, we generally recommend that folks use a credential helper so that they don't need to be prompted for a password. |
Hi @bk2204, many thanks for your fast reply. What I get from
BTW, before the third password prompt, I get this message before an OpenSSH dialogue window pops up:
How can I totally disable those OpenSSH popup windows in Linux? Many thanks for your help. |
Hey, The reason you're seeing this is because Git LFS needs credentials in addition to Git, and there's no way to pass these credentials along from Git to Git LFS. If you want to avoid this, then you'll need to use a credential helper. You can run You're likely seeing the window because either |
@bk2204, many thanks for your reply. If LFS cannot use the authentication from Git, my question would be why it needs to ask for the password twice. Many thanks for your help. |
There are two operations here which do not share state, and those are lock verification and the actual upload. It would be nice if in the future we shared the credentials between them, but we don't at this point, and even if we did, it's possible (because the requests can be to different servers) that it might require multiple authentication requests. If you aren't using locking, you can disable it with the |
Note that caching credentials does not help when using a security token (which physically needs to be touched 5 times in my case, with a few seconds delay between each touch). Is there some way to disable git-lfs when pushing? (assuming none of the changes relate to git-lfs) |
@ideasman42 See this advice: |
Hi there,
with all my repositories (which don’t have LFS enabled [ŧhey don’t require it]), password is asked only once.
My
.gitconfig
in Linux also contains:But when I add LFS to a repository, I have to enter the password three times.
Because of this, I removed LFS from a repository only containing PDF documents. But over 450MB have to be managed with LFS.
If extra authentication isn’t a bug, my question is why LFS needs it.
Many thanks for your help.
The text was updated successfully, but these errors were encountered: