To change the default password cache timeout, enter the following: git config -global credential.helper 'cache -timeout=3600' # Set Git to use the credential memory cache In Terminal, enter the following: git config -global credential.helper cache By default, Git will cache your password for 15 minutes. So, turn on the credential helper so that Git will save your password in memory for some time. Menu to reduce the number of prompts you get. If youĭon't do this, you may want to consider Disabling Autofetch in the. Tip: You should set up a credential helper to avoid getting askedįor credentials every time VS Code talks to your Git remotes. I found the solution on Visual Studio Code document: Sorry if this bad answer has affected you for a long, long time. (It actually makes you stagnant in your workflow.) It only stops things happening in Visual Studio Code and moves these happenings to the terminal. The updated part at the end of this answer doesn't really help you at all. See a good instruction by here for the answer. Done! This solution also helps you never retype password on terminal again. Use ssh-keygen to generate your key and copy it to Git server.
0 Comments
Leave a Reply. |