I need to inject Git information at the top of each source code that is a part of Git repository. In past, we have worked on CVS repository for maintaining source code. In CVS, CVS information was added at the top of the source file with each commit.
##########################################
# CVS information
#
# $Source: /cvs_repo/test/prog1.pl,v $
# $Revision: 1.4 $
# $Date: 2020/06/22 10:15:00 $
# $Author: ma $
#########################################
Is it possible to add such information in Git also with each commit? Please suggest.
Thanks