0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitでCompressing objects: 100% からcloneが進まない

0
Posted at

発生したこと

以下の出力から git cloneが進まない

remote: Enumerating objects: ~~~, done.
remote: Counting objects: 100% (~~~/~~~), done.
remote: Compressing objects: 100% (~~~/~~~), done.

環境

Windows11
git version 2.47.0.windows.1
OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2

対象のリポジトリは作成したばかりの軽いリポジトリでした。

原因

Gitのバージョンが古いことでした。
以下のサイトにある通り、Git 2.47.0にバグがあるようで、fetchなどの動作でハングアップするらしいです。
https://gitlab.com/gitlab-org/gitlab/-/work_items/499350

解決法(Gitをアップグレード)

まず現在使っているGitのバージョンを確認します。

git --version
===結果===
git version 2.47.0.windows.1

結果が2.47.0だった場合はアップデートすることにより不具合が解消されます。(2.47.Xとかでも試してみるといいと思います)

アップグレードするには、git update-git-for-windowsを実行します。
私の環境ではgit version 2.54.0.windows.1がインストールされました。

結果

以下のように結果が進み、最終的にcloneできるようになりました。

remote: Total ~~~ (delta ~~~), reused ~~~ (delta ~~~), pack-reused 0 (from 0)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?