I have a repo that contains fairly heavy binary files that are updated fairly often (yes, I know, this it's not what git was meant for).
While I want to keep the versioning for all of them on the server (Github in my case), I'd like to have downloaded only the last commit.
Currently, while the files themselves are only 1.5GB, the .git
folder it's more than 10GB.
What I'd like to have it's something like a persistent shallow copy.
I'd like a git clone --depth=1
but instead of cloning it would "truncate" the local history down to the last commit.
Reading the git log
after a fresh shallow clone I can see that last and only commit is "grafted
". What does this mean? How would I "recreate" this situation?