I have a GIT repo in which I have two folders which are managed with some GH actions and forwarded to GH pages. The first folder (name it data/
) contains compressed historical data collected periodically through GH actions. The second folder (name it docs/
) contains the uncompressed data for the latest collection and some additional HTML files which are meant for the GH pages. This second folder is also updated on the same periodicity as the first folder - and in this sense, the contents is fully removed (git rm *
and git push
) before updating it (tar x
followed by git add/commit/push
)
Since the uncompressed data is quite large, the GIT repo keeps growing and growing. However, I'm not interested in keeping a history of this second folder - I only want to keep the latest update, so is there any way to remove the history of this second folder to save space?