1. 首先,在Git.bash文件中输入命令:
git config --global credential.helper store
  1. 然后你会发现你的C:\Users\用户名xx.gitconfig**文件会多出以下代码:
[credential]
	helper = store**
  1. 紧接着,使用git pull或者git push 命令,根据提示输入帐号和密码。这时你的本地生成一个类似C:\Users\用户名xx.git-credentials文件,用于记录帐号密码。
https://帐号:密码@gitee.com
  1. 完成以上几步,下次就不用再次输帐号密码了。
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐