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

[PATCH] Documentation/git-reset.txt: suggest git commit --amend in example.

From
Gerrit Pape <pape@smarden.org>
Date
Apr 23, 2007, 12:06 UTC
Message-ID
<20070423120629.23521.qmail@b1f8866d714ca2.315fe32.mid.smarden.org>
Please see http://bugs.debian.org/420112
In example 'Undo a commit and redo', refer to 'git commit --amend', as
this is the easier alternative.
---
 Documentation/git-reset.txt |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 5b55cda..19c5b9b 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -67,6 +67,8 @@ message, or both.  Leaves working tree as it was before "reset".
 <3> "reset" copies the old head to .git/ORIG_HEAD; redo the
 commit by starting with its log message.  If you do not need to
 edit the message further, you can give -C option instead.
++
+See also the --amend option to gitlink:git-commit[1].
 
 Undo commits permanently::
 +
-- 
1.5.1.2
Next: Gerrit Pape
Message 1 of 2 in “Documentation/git-reset.txt: suggest git commit --amend in example.”
  1. Documentation/git-reset.txt: suggest git commit --amend in example.Gerrit Pape, Apr 23, 2007
  2. Documentation/git-reset.txt: suggest git commit --amend in example.Gerrit Pape, Apr 23, 2007

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.