简体   繁体   English

Git 克隆失败

[英]Git Clone Failed

Problem问题

I am trying to do the clone from bitbucket .我正在尝试从bitbucket进行克隆。 It is failing.它失败了。

Other stackoverflow posts其他stackoverflow帖子

I have gone through other stackoverflow posts but could not succeed.我已经浏览了其他 stackoverflow 帖子,但未能成功。 Specifically具体来说

  1. shallow/unshallow has not worked. shallow/unshallow不浅的没有奏效。
  2. PostBuffer increase to 1 gb has not worked PostBuffer增加到1 gb无效
  3. The core.compression is already 0 means disabled but it did not work core.compression已经为0表示禁用但它不起作用

Clone using cmd使用 cmd 克隆

I have tried to go --depth 1 with clone and then --unshallow but it did not work.我试过 go --depth 1clone然后--unshallow但它没有用。

It gave an error like below when tried git pull --all尝试git pull --all时出现如下错误

在此处输入图像描述

Clone using Eclipse(Spring Toolsuite 3)使用 Eclipse 克隆(Spring 工具套件 3)

Then i tried to do the clone using Eclipse(Spring IDE) using ssh but it still failed with the following error然后我尝试使用ssh使用 Eclipse(Spring IDE)进行克隆,但它仍然失败并出现以下错误

在此处输入图像描述

This seems like is because of some large object in history.这似乎是因为历史上一些大的 object。

Questions问题

  1. If i am getting this error due to a large object in history, can i remove this?如果由于历史记录中的 object 较大而出现此错误,我可以删除它吗? How to do that?怎么做?
  2. Is this a limitation of git client I am using or the Bitbucket the host of the repository?这是我正在使用的git客户端还是存储库主机Bitbucket的限制?
  3. Should I try some other git client to clone/pull the repository我是否应该尝试使用其他git客户端来克隆/拉取存储库

More Info更多信息

Git Configurations using git config --list Git 配置使用git config --list

core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=[CERT FILE]
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.email=[EMAIL]
user.name=[NAME]
winupdater.recentlyseenversion=2.23.0.windows.1
core.compression=0
http.postbuffer=1048576000
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=[URL]
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

This repository is not using LFS此存储库未使用LFS

A suggestion I have come across is to use an older version of Eclipse that can succeed in cloning.我遇到的一个建议是使用可以成功克隆的older version Eclipse。 Why is that so?为什么呢?

The error details in eclipse(sts) are as below eclipse(sts)中的错误详情如下在此处输入图像描述

Spring Tool Suite 4.4.0 has the same error as above, the detail of the env is as below Spring Tool Suite 4.4.0出现与上述相同的错误,env 的详细信息如下

在此处输入图像描述

Java is 64 bit Java 为 64 位

在此处输入图像描述

Some findings/conclusions一些发现/结论

  1. The error with STS is a limitation of the JGit that is used in it as the Git client. STS的错误是作为Git客户端使用的JGit的限制。 It has a limitation of size as far as I could understand据我所知,它有大小限制
  2. That error does not occur if i use git from cmd or even if use another client sourcetree .如果我从cmd或者即使使用另一个客户端sourcetree ,也不会发生该错误。 In this case the error is the other one which says在这种情况下,错误是另一个说

    fatal: pack has bad object at offset 90599582: inflate returned 1

    fatal: index-pack failed

  3. The eclipse oxygen is able to clone successfully. eclipse 氧气能够成功克隆。 But it does not make sense what's going on behind the scenes.但是幕后发生的事情是没有意义的。

This is interesting problem (I had the some problem cloning Linux), there are several solutions all of with can be found here: https://www.atlassian.com/git/tutorials/big-repositories这是一个有趣的问题(我在克隆 Linux 时遇到了一些问题),在这里可以找到几种解决方案: https://www.atlassian.com/git/tutorials/big-repositories

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM