git pre-commit hook that runs 'make check-spaces' and 'make check-changes'
We already have scripts/maint/pre-push.git-hook which helps preventing fixup commits from ending up in upstream branches. We should also have a pre-commit hook script to prevent creating commits that would fail whitespace and change file checkers.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information