Today I went to push some Git branch to a private Git repository, and I received the following reply:
Oh, crap, it must be some experimental hook I put into the remote repo. Unfinished from the looks of it. (Because of “0 commits”. A bug that obvious and unavoidable must mean that the work was half-baked.)
So I thought grumpily that I would to have to get into the remote machine and disable the hook…
And then I saw that the message ended with:
Oh, thanks! Useful!
And because of that, I realized that it was actually a local hook,
I forget stuff a lot, and putting in this sort of hint really helps me when I fall foul of my own incomplete work, months after I have forgotten it. It's like a gift from my past self, and getting them also motivates me to try to send more such gifts to my future selves.