github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/.githooks/README.md (about) 1 # Git hooks 2 3 Hook scripts in this directory can be placed in .git/hooks to get git to help with our workflow. These are for developer use only, and have no impact by just being here in .githooks. 4 5 You should also be able to link them, for example (if you don't mind if they change upstream, and don't introduce any changes of your own) 6 7 The easiest way to do it is to use the script: `.githooks/linkallchecks.sh` and `.githooks/unlinkprepush.sh`. If you have a situation where you want to push without the checks, just `unlinkprepush.sh` and then put it back with `linkallchecks.sh`. 8 9 But what you're actually doing is this: 10 ``` 11 cd .git/hooks 12 # For all the static checks: 13 ln -s ../../.githooks/pre-push.allchecks pre-push 14 # or for just gofmt quick check 15 ln -s ../../.githooks/pre-push.gofmt pre-push 16 ```