davidselo
davidselo

Reputation: 1325

stop my git repository compressing Compressing objects: 98% (36269/36738)

i try made a clone of the repository and this stop at 99% of compression objets and i think maybe the solution can the compresion of the repository and ran : git gc --aggressive and the command stop in 98%.the largest file of my repository have over 200 MB. How i can repair the repository?

Upvotes: 1

Views: 1458

Answers (2)

Adam Dymitruk
Adam Dymitruk

Reputation: 129526

Get rid of large files with

git filter-branch

You will need to specify the proper options on this command. Once you have taken the large file out of your repository, your clone should be fast.

Upvotes: 0

Adam Dymitruk
Adam Dymitruk

Reputation: 129526

If your repository is corrupt, you can check what objects have a problem with

git fsck --full

Then you can act accordingly on the problem objects.

Upvotes: 1

Related Questions