Skip to content

Instantly share code, notes, and snippets.

@eighty4
eighty4 / flutter-git-hook.sh
Last active March 3, 2023 22:19
An appropriate pre-push Git hook for Flutter projects
#!/bin/sh
set -e
flutter test
flutter analyze
dart format lib test --set-exit-if-changed
git diff --exit-code