由于公司内网22端口被封,只能拨vpn 才能用ssh 提交代码。因此记录以下免密码http(https)提交方式。
修改项目下.git/config
将原来的
http://git.xxx.com/xxxxx/xxxx.git
改为
http://username:password@git.xxxx.com/xxxxx/xxxx.git
即可