When I run git fetch production
to fetch objects from my remote repository hosted on Gitlab, I get the following in my terminal -
remote: Counting objects: 100% (4895/4895), done.
remote: Compressing objects: 100% (515/515), done.
Receiving objects: 25% (11199/44589), 476.81 MiB | 3.42 MiB/s
This seems to take forever, because each object seems to be large in size.
The fun part is - I've absolutely no clue which are these objects; because I've double-checked my local repository; and all I have is Laravel Framework, with my custom code; and no big packages. I'd estimate max size of my repository should not be greater than 200 - 300 MB.
Is there any way to troubleshoot this? It's driving me nuts!
Update: While I was composing this question, the terminal threw the following -
Receiving objects: 100% (44589/44589), 1.14 GiB | 3.39 MiB/s, done.
Resolving deltas: 100% (28324/28324), done.
The objects size seems to have gone down from 44589 -> 28324. Can someone help me figure out what's going on and how can I speed up my git pulls and git fetches?