skip to Main Content

I have to log in again and again whenever I try to push to my repository.

If I untick the above then only it works fine but still it asks me again for username and password which is not ideal.

My VS config

PC configuration:-
– VSCode Version: 1.45 Debian
– OS Version: Ubuntu 18.04

2

Answers


  1. From Github VSCode Docs:

    GitHub authentication for GitHub repositories

    VS Code now has automatic GitHub authentication against GitHub repositories. You can now clone, pull, push to and from public and private repositories without configuring any credential manager in your system. Even Git commands invoked in the Integrated Terminal, for example git push, are now automatically authenticated against your GitHub account.

    You can disable GitHub authentication with the git.githubAuthentication setting. You can also disable the terminal authentication integration with the git.terminalAuthentication setting.

    UPDATE: Refer to the solution here

    Login or Signup to reply.
  2. While it may not be the case for you, cloning from the https rather than the ssh is often the source of issues like this one.

    Instructions for setting up SSH keys to GitHub:
    https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

    Setting up the connection details inside VSCode may interfere with using git from a terminal outside of it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search