I have a repo that includes several binary files, which are rather big for git (up to several 100 MBs). I want to keep track of everything else via git and be able to clone that repo including those binaries. But i don't want the cumulative size of their blobs.
I can't keep the binaries outside the repo. A separate Git-LFS server is no option, since the "remote" is just a bare repo on a smb network share/external drive. The files already include their own versioning.
Is there any way I can push the newest version of those files to the remote, without saving the diff in history?
Is there any way I can push the newest version of those files to the remote, without saving the diff in history
No diffs are saved in history. History consists entirely of commits, which are complete static snapshots of the state of the entire project (they are not diffs, or changes).
If the goal is to behave as if this file has no history, you would need to rewrite potentially all past commits to eliminate the file from them. That is not a tenable repeatable procedure going forward, but you could certainly do it once if you had to.
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