From: Rogan Dawes Date: Thu, 29 Oct 2009 14:47:03 GMT Subject: Re: date change of commit? Message-ID: <4AE9AAE7.2080404@dawes.za.net> In-Reply-To: Alex K wrote: > 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 > 2009/10/27 Miklos Vajna : >> On Tue, Oct 27, 2009 at 10:41:47AM +0100, Alex K 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). >>