I have one repository where a lot of large binary files live. Is it possibly set git to make it keep only last n number of commits? Such as i only want to keep last 5 copies of files in this repository history? But i would very like to not do this manually every 5 commits?
The only way to do that is to periodically rewrite the repository.
A commit contains a hash of the commit meta data, the commit info, the commit's parent(s) and the tree you're committing. It's not possible to change something in the past without affecting the present.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With