Git doesn't really work well for large binary files. And it's better to use git-annex, git-lfs etc for them. I want to ensure I am reminded about this fact any time I try to add/commit a large binary file. I know that GitHub already warns if a file is larger than their limit. However, I want the solution to not rely on GitHub.
So, my question is -- Is it possible to specify (preferably in gitconfig, although even specifying it per repository is okay) that I want to be warned any time I add/commit a file larger than a pre-defined size?