1
I wonder if it’s possible to change the time of a commit.
Here’s the situation, I have a built-in git server with Redmine. When users are going to upload code in the commit gets the local time of the machine that is always wrong, I would like when the file is commited it takes the server time. I use a script to control the repository and actions in Redmine.
Grateful from now on.
Well I would like it to be automatic, every time a commit is made the time and date will be changed, being the same as the server.
– Jonas Martins
Git allows the creation of "Hooks" on both the Server and Client side to call a script and do some action when important events happen, such as in the case of a commit (on the client) or push (on the server).
– Rodrigo Guiotti