git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: date change of commit?

From
RDRogan Dawes <rogan@dawes.za.net>
Date
Oct 29, 2009, 14:47 UTC
Message-ID
<4AE9AAE7.2080404@dawes.za.net>
In-Reply-To
<e4a904790910290555n61bca296g3624c1aced50ed85@mail.gmail.com>
Alex K wrote:
Show 5 quoted lines
> And how do you actually set those variables? Sorry to ask such a
> trivial question but it's been an hour that i'm going through the doc
> for such a simple feature. I thought those were environment variables
> ... but they are not seen under git var -l. Thank you.
> 
As you suspected, they are environment variables.
i.e. :
$ GIT_AUTHOR_DATE="1112911993 -0700" git commit x
Hope that helps.
Rogan
Show 8 quoted lines
> 2009/10/27 Miklos Vajna <vmiklos@frugalware.org>:
>> On Tue, Oct 27, 2009 at 10:41:47AM +0100, Alex K <spaceoutlet@gmail.com> wrote:
>>> Thank you. And how would you use git-filter-branch to create another
>>> branch with a different time stamp? Is it possible to commit under a
>>> different time stamp than the one provided by your default local time?
>> You can set GIT_AUTHOR_DATE and GIT_COMMITTER_DATE. Both expect a format
>> like: "1112911993 -0700" (unix timestamp + timezone info).
>>
Previous: Alex KNext: Thomas Rast
Message 6 of 7 in “date change of commit?”
  1. Alex KOct 25, 2009
  2. Matthieu MoyOct 25, 2009
  3. Alex KOct 27, 2009
  4. Miklos VajnaOct 27, 2009
  5. Alex KOct 29, 2009
  6. Rogan DawesOct 29, 2009
  7. Thomas RastOct 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.