1

The total size of my local directory exospace is 5.04 GB. The .git directory within is 4.9 GB. What is the best way to shrink the size of this directory given that only .14 GB / 5.04 GB is being used for files/directories relevant to my actual project?

enter image description here

arctic
  • 609
  • 3
  • 11
  • 19

1 Answers1

0

I mentioned the reflog --expire/gc combination before.

But first, for testing, clone your local repository in another folder, just to check that indeed your checked out folder would be much smaller.

In your original local folder (the one with 5GB of data), list your untracked files, and check their size: that will give you an idea of the issue.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250