(转)gitlab使用http方式提交代码不输入密码


背景: 假如你创建项目地址为 http://git.ops.test.com.cn/root/puppet.git

解决: 如果你已经执行过 git clone http://git.ops.test.com.cn/root/puppet.git ,则可以进入puppet目录,修改 .git/config 中 url = http://账号:密码@git.ops.test.com.cn/root/puppet.git ,再提交就发现不要输入密码了;

或者直接在克隆仓库的时候直接 git clone http://账号:密码@git.ops.test.com.cn/root/puppet.git ,这样下次提交时也不需要输入密码。

原文地址: http://peiqiang.net/2016/07/06/how-to-use-gitlab-http-push-your-code-without-enter-password.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM