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

Re: I can do past and feature commits. It is a bug?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 10, 2018, 00:02 UTC
Message-ID
<20180710000243.GK14196@aiede.svl.corp.google.com>
In-Reply-To
<CACNAd2RB4GqfrfbqViX5Jwtpcsm64uQ2uU4K4W+AVR0y5d96gA@mail.gmail.com>

+the public git mailing list, git-security@googlegroups.com -> bcc Hi,

Lin Terry wrote:
Show 6 quoted lines
> I can do past and feature commits. It is a bug?
>
> Check out my gitgub page.
> https://github.com/terrylinooo
>
> You can see a LOVE, they are past commits I commited yesterday.

The ability to set the author and committer date freely is an intentional capability. See the 'Commit Information' section of "git help commit-tree", for example.

If you'd like the ability to prove that an object was pushed by a particular person at a particular time, you might like the push certificates feature. The pusher is authenticated using a GPG signature; the push time can be recorded by the server in its pre-receive or post-receive hook (so you still have to trust the server for that). See the description of --signed in "git help push" and of hooks in "git help receive-pack" for more details on that subject.

Thanks and hope that helps, Jonathan

Message 1 of 1 in “Re: I can do past and feature commits. It is a bug?”
  1. Jonathan NiederJul 10, 2018

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.