我只是想从 Github 克隆一个私有存储库,然后出现提示并询问我的登录详细信息。我打了一个错字,但我没有第二次尝试。如果我再次尝试克隆,我会收到以下消息:
Cloning into 'name'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/owner/name.git/'
Run Code Online (Sandbox Code Playgroud)
我想为我的 git 设置默认密码和用户名,因为我只会使用 1 个 Github 帐户。如何设置我的用户名和密码?
我在网上找到了很多东西,但没有一个是设置凭据的明确命令。
提前致谢
小智 8
尝试以下对我有用的解决方案:
或者,您可以在运行对话框中使用快捷方式控制 /name Microsoft.CredentialManager (WIN+R)