免密码提交gitlab

在你的用户目录下新建一个文本文件.git-credentials

echo 'https://henry:123456@ggithub.com' > /root/.git-credentials
git config --global credential.helper store

之后再提交就不需要用户和密码了

posted @ 2019-05-23 17:51  cptao  阅读(1100)  评论(0编辑  收藏  举报