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

git commit --date format

From
乙酸鋰 <ch3cooli@gmail.com>
Date
Apr 13, 2015, 15:42 UTC
Message-ID
<CAHtLG6SPqoZJ+bc6eaHEAkEN9VAwuq+hh4OUG8opOETRQKfUyg@mail.gmail.com>
Hi,

In git < 2.0, git commit --amend --date="" can amend commit with current time as author time. But since git 2.0, this does not work, dying with "invalid date format". I have to instead type git commit --amend --date="now". Is empty string date format no longer supported? Or will be fixed?

Next: Junio C Hamano
Message 1 of 2 in “git commit --date format”
  1. 乙酸鋰Apr 13, 2015
  2. Junio C HamanoApr 14, 2015

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.