Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git shell prompts for password in an OpenSSH popup window

I don't know why, recently git shell asks me for credentials in an old-fashioned OpenSSH window (by the way, I use a https connection) instead of just prompting in the console.

That prevents me to use the wincred, I always have to type my credentials. Quite annoying, esecially that when I make a typo, the console cursor disappears. How can I go back to the default mode?

System: Windows 7
Console: ConEmu

github openSSH window

Thanks for help!

like image 800
saq Avatar asked Mar 18 '16 00:03

saq


People also ask

How do I stop Git asking for password?

You can avoid being prompted for your password by configuring Git to cache your credentials for you. Once you've configured credential caching, Git automatically uses your cached personal access token when you pull or push a repository using HTTPS.

How do I update my Git credentials in Ubuntu?

In your terminal, navigate to the repo you want to make the changes in. Execute git config --list to check current username & email in your local repo. Per repo basis you could also edit . git/config manually instead.


2 Answers

Use $ git config --global core.askPass ""

You can also set credentials in your config to prevent being prompted every time (https://git-scm.com/docs/gitcredentials).

like image 75
BrJ Avatar answered Sep 23 '22 05:09

BrJ


This could be also caused by Visual Studio Code. If this is the case just add "git.autofetch": false into your setting.json file.

like image 32
Yar Avatar answered Sep 22 '22 05:09

Yar