Report question

Question: In Git, how can I write the current commit hash to a file in the same commit