Reputation: 9350
Is there away to make git only retain the most recent version of certain blob files without keeping any history on the blob?
I have a huge data set that my project relies on, but no one cases about the history of it only that it is part of the project and that they are useing the most recent data set.
Thanks.
Upvotes: 2
Views: 101
Reputation: 10155
With git clone
, you can create a shallow clone using the --depth
option. Using --depth 1
only downloads stuff that is needed to checkout the latest tree.
From man git-clone
:
--depth
Create a shallow clone with a history truncated to the specified number of revisions. A shallow repository has a number of limitations (you cannot clone or fetch from it, nor push from nor into it), but is adequate if you are only interested in the recent history of a large project with a long history, and would want to send in fixes as patches.
Upvotes: 1