Home > Blockchain >  Everytime ask for login when git command
Everytime ask for login when git command

Time:10-31

I used personal token to clone private repository,then when I commit or push changes, there would a window ask for login github.

Where can I setting so that don't need to login by browser everytimes?

The ask window is:

enter image description here

CodePudding user response:

Once signed-in (preferably with a Personal Access Token), Git should not ask for your credentials again.

Check that git config --global credential.helper is set to manager.
That would use the GCM (Git Credential Manager) from Microsoft (a cross-platform credential manager).

CodePudding user response:

You can take a look at this guide: https://docs.github.com/en/authentication/connecting-to-github-with-ssh to use SSH. Once you have setup the key on your device and on your GitHub account, you can clone, pull, commit, push and etc. using this SSH key instead of your username and password.

  • Related