{"thread":{"id":"52647","subject":"How do I change the AuthorDate and CommitDate of all my commits?","startedAt":"2020-01-16T11:30:23Z","lastAt":"2020-02-14T06:32:15Z","messageCount":2,"participants":["gritzmann","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"389887","messageId":"Ogtz26tj4ZgCMamF3jprc21AvPiEvWlYS9IgAwPDAPOJHd0THDCaNSwNi6qjUxE9ZknGw-87P7wnnQUkH3khrFnEXoAy8VvmEuBpVLpQ3Qw=@protonmail.com","threadId":"52647","inReplyTo":null,"subject":"How do I change the AuthorDate and CommitDate of all my commits?","fromName":"gritzmann","fromEmail":"gritzmann@protonmail.com","sentAt":"2020-01-16T11:30:10Z","receivedAt":"2020-01-16T11:30:23Z","isPatch":false,"sender":{"key":"gritzmann@protonmail.com","avatar":null},"body":"Hi,\n\nI*m looking to completely anonymize the timestamps of my files and repos For the files themselves I changed their access, modify, change and birth times like this: `touch -acm -d \"1980-01-01 00:00:00\"`.\n\nBut how do I do the same for the AuthorDate and CommitDate of all my commits?\n\nThanks!\n\nSent with ProtonMail Secure Email.\n"},{"id":"391740","messageId":"20200214063213.GC605125@coredump.intra.peff.net","threadId":"52647","inReplyTo":"Ogtz26tj4ZgCMamF3jprc21AvPiEvWlYS9IgAwPDAPOJHd0THDCaNSwNi6qjUxE9ZknGw-87P7wnnQUkH3khrFnEXoAy8VvmEuBpVLpQ3Qw=@protonmail.com","subject":"Re: How do I change the AuthorDate and CommitDate of all my commits?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2020-02-14T06:32:13Z","receivedAt":"2020-02-14T06:32:15Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jan 16, 2020 at 11:30:10AM +0000, gritzmann wrote:\n\n> I*m looking to completely anonymize the timestamps of my files and\n> repos For the files themselves I changed their access, modify, change\n> and birth times like this: `touch -acm -d \"1980-01-01 00:00:00\"`.\n> \n> But how do I do the same for the AuthorDate and CommitDate of all my\n> commits?\n\nIf you're just creating the commits now, you can set $GIT_AUTHOR_DATE\nand $GIT_COMMITTER_DATE in the environment. Like:\n\n  export GIT_AUTHOR_DATE='1980-01-01 00:00:00 +0000'\n  export GIT_COMMITTER_DATE=\"$GIT_AUTHOR_DATE\"\n\nIf you have existing commits, you'll have to look into rewriting them\nwith git-filter-branch, or piping git-fast-export to git-fast-import and\nmodifying the stream in between.\n\n-Peff\n"}]}