I was working on a task in which multiple java files having date variable.
Before commit: private String DATE="$DATE$"
In which once i committed those changes into GIT repo, is there any possible way to do git hook that will populate the committed date automatically into the java files.
After commit: (it should auto populate the committed date) private String DATE="$DATE: 2019-10-05 13:10:45 $"
Any help, will be really appreciated.