如图,其实这个地址我已经不再用了,但是现在还是老是弹出输入账号密码。如何解决?
![图片说明](https://img-ask.csdn.net/upload/201811/22/1542876075_358725.png)
![图片说明](https://img-ask.csdn.net/upload/201811/22/1542876241_612604.png)
如图,其实这个地址我已经不再用了,但是现在还是老是弹出输入账号密码。如何解决?
![图片说明](https://img-ask.csdn.net/upload/201811/22/1542876075_358725.png)
![图片说明](https://img-ask.csdn.net/upload/201811/22/1542876241_612604.png)
建议提前升级git到最新版本
删除.gitconfig,重新执行以下操作
创建文件存储GIT用户名和密码
打开git bash客户端,进入%HOME%目录(一般为C:\users\yourUserName),执行以下命令,注意要带上大括号
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com
添加Git Config 内容
进入git bash终端, 输入如下命令:
git config --global credential.helper store
执行完后查看%HOME%目录下的.gitconfig文件,会多了一项:
[credential]
helper = store
重新开启git bash会发现git push时不用再输入用户名和密码