【Git技巧】第十篇 解决每次git clone都需要输入账号密码
git config --global user.email "开启了权限的账号对应的邮箱"git config --global user.name "开启了权限的账号"谨记:密码是gitHub或gitlab上的访问令牌。每次 git clone 时都需要输入账号、密码。然后在输入账号密码之后,后面每次克隆不需要输入。
·
目录
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"
更多推荐

所有评论(0)