git pull 服务器中总是有未提交的解决

复制git config core.filemode false

git pull 出现如下报错

A机器通过ssh-copy-id root@IP(B)添加了链接到B机器的ssh秘钥。但是某天,B机器的密码修改或者机器重装,此时,在A机器上再次ssh IP(B)会报类似如下错误

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for git.netcnnet.net has changed,
and the key for the corresponding IP address 101.42.92.230
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
81:2b:99:d5:ac:4b:48:46:08:0c:fb:bb:b4:93:0c:c9.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:4
RSA host key for git.netcnnet.net has changed and you have requested strict checking.
Host key verification failed.
fatal: The remote end hung up unexpectedly

解决办法:

ssh-keygen -R [服务器ip address]
例子:ssh-keygen -R git.netcnnet.net

出现如下结果即可:

# Host [IP address] found: line **
/Users/apple/.ssh/known_hosts updated.
Original contents retained as /Users/apple/.ssh/known_hosts.old
git clone failed报错 4069 bytes of body are still expected
clone 时提示clone failed

异常信息如下:

4:07 下午    Clone failed
                4069 bytes of body are still expected
                fetch-pack: unexpected disconnect while reading sideband packet
                early EOF
                fetch-pack: invalid index-pack output
                Show details in console

解决方案:

修改git 的缓存

git config --global http.postBuffer 1024M

注:具体值根据实际下载包大小设置

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部