How to set limits for git commits/pushes?

Requested feature: