公司gitlab不支持ssh时,用http提交代码免密输入方法

由于公司内网22端口被封,只能拨vpn 才能用ssh 提交代码。因此记录以下免密码http(https)提交方式。

修改项目下.git/config

将原来的

http://git.xxx.com/xxxxx/xxxx.git

改为

 http://username:password@git.xxxx.com/xxxxx/xxxx.git

即可

posted @ 2018-09-03 16:27  卢沟晓月  阅读(634)  评论(0编辑  收藏  举报