Message events are for messages generated by the remote server and sent during fetch and push requests.
They are particularly useful if the remote server has custom git-hooks that print to the console.
Example
You are writing a console application, and you want to simply print any server messages to standard out.
The clone, fetch, push, and pull commands all accept an the callback.
Message events are for messages generated by the remote server and sent during
fetch
andpush
requests. They are particularly useful if the remote server has custom git-hooks that print to the console.Example
You are writing a console application, and you want to simply print any server messages to standard out.