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

[PATCH] git-commit: document --date=now for amended commits

From
GGGontu Sujith Reddy via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 23, 2026, 09:34 UTC
Message-ID
<pull.2502.git.git.1795426497536.gitgitgadget@gmail.com>
From: GontuSujithReddy <gontusujith2009@gmail.com>

Amending a commit normally preserves its original author date. Mention that --date=now sets the author date to the current time when amending.

Signed-off-by: GontuSujithReddy <gontusujith2009@gmail.com>
---
    git-commit: document --date=now for amended commits
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2502%2FGontuSujithReddy%2Fdoc-commit-date-now-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2502/GontuSujithReddy/doc-commit-date-now-v1
Pull-Request: https://github.com/git/git/pull/2502
 Documentation/git-commit.adoc | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/Documentation/git-commit.adoc b/Documentation/git-commit.adoc
index 8329c1034b..ba0d5aeb8f 100644
--- a/Documentation/git-commit.adoc
+++ b/Documentation/git-commit.adoc
@@ -182,6 +182,8 @@ See linkgit:git-rebase[1] for details.
 
 `--date=<date>`::
 	Override the author date used in the commit.
+	When amending a commit, use `--date=now` to set the author date
+	to the current time.
 
 `-m <msg>`::
 `--message=<msg>`::

base-commit: f7de81456940dd6f3274e461149bba12965de609
-- 
gitgitgadget
Next: Junio C Hamano
Message 1 of 2 in “git-commit: document --date=now for amended commits”
  1. git-commit: document --date=now for amended commitsGontu Sujith Reddy via GitGitGadget, Nov 23, 2026
  2. Junio C HamanoNov 23, 2026

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.