If you want to use Restic (or any other deduplicating backup tool) for backing up Git repositories with lots of large binary files, this blogpost might be helpful: https://olivergerlich.wordpress.com/2025/01/10/efficient-backup-of-a-git-repository-with-deduplication/ .
Unfortunately I did not find an _easy_ solution for this; but at least it is possible to make space-efficient backups in this case.