Today, git offers "partial clone" options that enable downloading the commits and trees of a repository, while allowing blobs to be downloaded on-demand, saving network bandwidth and disk space.
This can be enabled during the initial git clone
by passing --filter=blob:none
. However, is there a way to convert an already existing local repository to the "blobless" format? This should save some disk space by deleting any local blobs known to be available from the
"promisor" remote.
git clone --filter=blob:none /path/to/full/repo.git /path/to/blobless.git
) – Perilorigin
remote repository to point to the original one. – Peril