GitHooks run unittests before committing code!

Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=5cuH4huDwzE



Duration: 15:23
354 views
3


Git Hooks are easy to use!
Place a script in the .git/hooks folder which i executable and with the hooktype as name. If the script returns code 0 the git action is carried out.
Thank you for commenting it means a lot!
Enjoy! :-)
The code is not uploaded today.
Let me know if you need it. Its very simple... Ill actually leave the script here:
#!/bin/sh
echo "Hellow I have added a git hoook!"
echo "Yes its working... lets commit"
echo "Path is: $(pwd)"
./gradlew clean test

Follow me on twitter:
https://twitter.com/MikeMoelNielsen
Support me on Patreon:
https://www.patreon.com/mikemoellernielsen







Tags:
git
gradle
unittest
junit5
githooks
hooks
java