2

We were working on a Laravel project using git hub pull push method.

Recently we downloaded our project (our work is not done yet, only 40% done so far ) .

Now we found the project size 480+ mb . What we do ?

OMR
  • 11,736
  • 5
  • 20
  • 35
Shishir
  • 187
  • 1
  • 8
  • Did you add vendor directory to .gitignore? – Beller Mar 03 '21 at 06:55
  • Run a usage analysis tool to see what takes the space. We can't just speculate what could have happened. – apokryfos Mar 03 '21 at 07:01
  • @Beller No I did not, in fact this my first work in git - that's why I missed a lot of procedure I guess – Shishir Mar 03 '21 at 07:04
  • @apokryfos I actually downloaded the zip file from git and deployed it on server running catche/route clear command in cmd (hope this info will help you to get my issue ) – Shishir Mar 03 '21 at 07:05
  • no actually that raises more questions than it answers. Is the zip file what's 480mb? And also which folder takes most space? – apokryfos Mar 03 '21 at 11:45

1 Answers1

2

You should:

  • clone the repository
  • run the tool github/git-sizer to see exactly what is taking so much space.

That is:

cd /path/to/local/cloned/repository
git-sizer --verbose

Then you can apply the tool newren/git-filter-repo (mentioned here, do install it first) to remove any large element.

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