[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Git for backup storage



On 06/10/2023 16:14, Nicolas George wrote:
Unfortunately, Git is very bad at removing old data

I have no idea if it is possible to do it in place, but "git clone" and "git fetch" have the --depth option. So you can specify how many last commits you would like to have in the cloned repository. Using "git rebase --interactive" it is possible to squash e.g. daily commits into weekly or monthly ones. The drawback is that git rebase changes commit hashes.


Reply to: