1. 进入~(用户)目录,cd ~
2. 建立文件 .git-credentials, touch .git-credentials
3. 编辑文件 .git-credentials, vi .git-credentials
4. 添加http://用户名:密码@gitlab.com
5. 执行命令:git config --global credential.helper store
6. 查看文件:more .gitconfig,可以看到如下信息,设置成功。

1. 进入~(用户)目录,cd ~
2. 建立文件 .git-credentials, touch .git-credentials
3. 编辑文件 .git-credentials, vi .git-credentials
4. 添加http://用户名:密码@gitlab.com
5. 执行命令:git config --global credential.helper store
6. 查看文件:more .gitconfig,可以看到如下信息,设置成功。
本文标题:解决gitlab需要输入用户名密码的问题
本文链接:https://www.haomeiwen.com/subject/qzbfjftx.html
网友评论