简体   繁体   中英

Visual Studio Code not caching git password on Linux

Visual Studio Code (latest version) is not caching git password on Linux and pops up an annoying alert window (that blocks the whole UI). I tried this command unsuccessfully:

git config --global credential.helper cache 

Using Ubuntu 15.10.

If the cache credential helper is not working, try, as in this tweet

git config --global credential.helper store

It is a more basic way of caching credentials though (not in memory but in file)

The annoying part is that this window pops up every 5 minutes or so. You can disable the Git autofetch option using the User Settings .

Go to File > Preferences > User Settings . 2 different pages should appear in the editor: Default Settings and settings.json .
In the JSON file, simply type: "git.autofetch": false .

Save and you will not be annoyed by this pop-up anymore.
However, you would still need to type in your credentials when pushing/pulling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM