I have a .git folder thats 788MB in size. I noticed that the largest folder in the directory is the objects/pack folder.
To give a bit of context, I have a lot of projects which use git to extract information like Last Commit Hash, Author, etc. It turns out that when these projects go into my CI/CD pipeline, most of the time is spent uploading the .git directory.
I want to find a way to boil down a .git folder to only contain the necessary files to show me the last commit. Everything else is unimportant.
Does anyone have any thoughts on how I could approach this problem? Thanks in advance.
Update: the above question is asking how to boil down a .git folder before uploading to make the upload time a ton quicker.