Git Hooks
Pre-push
The following Git pre-push hook will ensure that files are auto-formatted before pushing.
If there are files that are formatted incorrectly, it will format them and generate a new commit.
Due to the way Git works, when this occurs, you will need to run git push
again.
You can always run
git push --no-verify
to skip the pre-push hook..git/hooks/pre-push