I need to run a script, say writing to a log file, after every git operation (checkout, pull, push, merge, etc.). Something like this:
> git checkout
> writelog.bat
But I don't want to manually run writelog.bat each time the git command completes.
I know about hooks, but not sure how to use it here.
Is there a way to do it in Git?