linux 用https方式 git pull 代码 免密操作

使用这中http方式 拉去代码时  git clone http://username@ip:host/xxxx项目

如下配置:

进入服务器的项目目录,执行

[root@slave5 ~]#  git config --global credential.helper store

执行之后,继续项目代码路径git pull

[root@slave5 BigData.XNYKDX.ETL]# git pull

重新输入一遍账号密码。然后往后就不需要再输入了

参考:https://blog.csdn.net/LJFPHP/article/details/79103679

猜你喜欢

转载自www.cnblogs.com/zk1023/p/9821692.html
今日推荐