We were given a task to inject commit information like committer, commit date and author name inside a file committed.
After some search and this thread How can I populate the Git commit ID into a file when I commit? we achieved injection into a file using keyword expansion and format placeholders. However, information was injected either after checkout or archive.
Is it possible to inject commit info into a file during or after push so that file in remote contains that commit information? We realize this may sound like non-necessary job but we would like to know about possibility of performing this requirement.