0

Actually i need some help to connect ubuntu with windows credential manager. Because when I want to push something on my repository ubuntu always want password (Acces token).

I tried git bash and cmd. They're fine with windows credential manager but ubuntu :(.

I tried git config --global user.name and user.email but they're not working.

I added my git account on windows credential manager. But it still same.

asked Jan 31, 2022 at 9:56
3
  • 1
    The user.name setting is not a credential and therefore never affects any credentials. Windows credentials are for Windows systems; Linux systems are not Windows and do not use Windows credentials, hence do not use Windows Credential Manager. Do not try to use the Windows credential manager here: use a different credential manager, or use ssh. Commented Jan 31, 2022 at 10:38
  • Which credential manager to use? yeah i know ssh but I just want to solve that specific problem thank you for your support. Commented Jan 31, 2022 at 10:46
  • Use any of the standard or nonstandard Ubuntu ones: search SO with [git] ubuntu credential manager, you'll find things like this. Commented Jan 31, 2022 at 10:54

1 Answer 1

1

I never knew this existed either, but (assuming you're in WSL here) you can point the credential manager to the windows executable like so:

git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe"

There are a few other config flags you may need to sed, check out the linked doc.

See:

answered Jan 31, 2022 at 12:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.