目录

1、遇到问题

2、问题解决

3、可以手动设置


1、遇到问题


每次 git clone 时都需要输入账号、密码。

2、问题解决


配置全局开机认证信息保存:

git config --global credential.helper store


可以永久保存。除非用命令解除。

然后在输入账号密码之后,后面每次克隆不需要输入。

谨记:密码是gitHub或gitlab上的访问令牌。

3、可以手动设置

git config --global credential.helper "store"
git config --global color.ui "auto"
git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000
git config --global https.sslVerify "true"
git config --global user.name "开启了权限的账号"
git config --global user.email "开启了权限的账号对应的邮箱"
git config --global init.defaultBranch "master"

Logo

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

更多推荐