Change in GIT log [duplicate]

-1

I would like to change the log of my GIT server using a hook.

The situation is as follows, when someone commits and the local machine has the wrong date, the log shows the local machine time. I would like that through a hook it would change the date and time automatically synchronizing with that of the server where the repository is.

    
asked by anonymous 03.03.2016 / 13:20

1 answer

-2

In my humble opinion, I would not mind that. Anyway, I recommend you read this date and time article in Git .

Edit:

Apparently I was not clear enough, having my answer denied. The link I recommended teaches you to use git commit --date and git commit -ammend --date which are the commands you will use in your hook.

    
03.03.2016 / 18:04