首页 > 其他 > 详细

git 问题记录

时间:2020-05-06 22:28:34      阅读:60      评论:0      收藏:0      [点我收藏+]

1.git代码拉取报错

SSH配置问题

Warning: the ECDSA host key for ‘slave2‘ differs from the key for the IP address ‘219.244.48.xxx‘
Offending key for IP in /home/hadoop/.ssh/known_hosts:3
Matching host key in /home/hadoop/.ssh/known_hosts:8

解决办法:

ssh-keygen -R 219.244.48.xxx //报错的IP

2.将git http方式替换为ssh

git config --global url."git@gitlab.xxx.com:".insteadof "https://gitlab.xxx.com/"

git 问题记录

原文:https://www.cnblogs.com/tomtellyou/p/12837490.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!