If you use husky (as many front-end developers do for pre-commit hooks), setting it up together with git-lfs might get... adventurous.
That's interesting, I didn't know about this issue.
There are a couple of solutions in this GitHub issue FYI: https://github.com/typicode/husky/issues/108
I'd encourage you to try Git LFS, it's a very simple extension to Git. It only takes a couple of minutes to set up if you use GitHub, and I suspect other platforms are similar :)