Visual Studio Code always asking for git credentials

后端 未结 22 727
悲&欢浪女
悲&欢浪女 2020-11-29 14:50

I started using Visual Studio Code, and I was trying to save my test project into GitHub, but Visual Studio Code is always asking for my GitHub credentials.

I have i

22条回答
  •  孤城傲影
    2020-11-29 15:12

    In general, you can use the built-in credential storage facilities:

    git config --global credential.helper store

    Or, if you're on Windows, you can use their credential system:

    git config --global credential.helper wincred

    Or, if you're on MacOS, you can use their credential system:

    git config --global credential.helper osxkeychain

    The first solution is optimal in most situations.

提交回复
热议问题