赞
踩
公司用的gitlab,在项目拉取(git clone)和更新(git pull)的时候,每次都提示输入用户名密码,不胜其烦,解决方法如下:
# 首先
git config --global credential.helper store
# 然后
git push origin your-branch
这时候会提示你输入用户名和密码,继续输入,下次再次执行git clone/push/pull的时候就不会在提示了。
原文地址: https://www.ngxcode.com/archives/134.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。