I added a new git pre-push hook, to avoid pushing a commit without a specific file, asking the user to approve pushing without that file:
echo -e "Are you sure you want to continue without the file [y/n]"
read -n1 -s decision
It works fine on bash and on MinGW, but when using TortoiseGit, it skips the 'read' action, and just continues. Is there any way to get interactive input from the user?
TortoiseGit does not fully support Git hooks.
Please use TortoiseGit hooks instead.