Our repository has many frequent commits with binary files. New users clone the repo with "--depth 1" option, and the size is manageable at first. Over time, with frequent pulls, the size of the repo grows rapidly. Is there a way to clean up the local repo, so that only N last commits are remaining?
We don't want to delete those files from history in remote, just clean the history of the local repo to "--depth 1"
PS: I know, git is not designed for binary files, and we should use something like LFS, but LFS is not very stable yet.