My git repo is 10MB because of the .pack file(9.8MB). I want to delete this from the git repo. I went through a lot of similar posts. One of them here suggest to save the code and .git and start a new repo. Others suggested to use git gc which can pack all .pack into 1 pack file. But I just have 1 pack file. So this makes me believe that there is no way to delete the one pack file? Or is there a way to delete it?
[EDIT]
I tried deleting it with the following command:
git --work-tree=/path rm pack-xxxx.pack
It gave the following error:
fatal: pathspec 'C:/Users/a80050652.CHINA/Contacts/deploy_osk/.git/objects/pack/pack-25e1b6c09af51440fec2159be951d2acf6eeca4e.pack' did not match any files