-
进入~(用户)目录
cd ~
-
建立文件 .git-credentials,
touch .git-credentials
-
编辑文件 .git-credentials,
vi .git-credentials
-
添加http://用户名:密码@gitlab.com
注:这里gitlab.com 可换成自己公司的私有云gitlab地址 -
执行命令:
git config --global credential.helper store
-
查看文件:
more .gitconfig
,可以看到如下信息,设置成功。
gitlab配置http的免密推拉
- 本文链接: https://gaodongfei.com/archives/gitlab-no-secret-push
- 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!