I have created a pre-push file and saved it into the .git/hooks folder. What seems to be going on is that the push is still making the call to the server even though I put in an echo statement and an exit 1 call. When I perform a git push call I can see the server message then my echo statement.
Shouldn't the push process stop immediately and not establish a connection to the remote server if the first line of the pre-push file is exit 1?
What am I missing here on this hook? The only thing that I would expect to see is my Hello there message and nothing else.
echo "Hello there" exit 1