$GIT_DIR/hooks/* (typically in
<repository_root>/.git/hooks/*) you may place scripts, which execute as you perform specific git operations on your repository. For more info on how to name the hooks and when exactly they are executed, type in
git help hooks in your console.
However, you are not able to use commands you know from
.bat files. Instead, place this in your hook (for example
cd ./.git/hooks start post-merge.cmd
post-merge.cmd (placed in the same folder as the hooks) is called and executed by the hook.