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

Looks like --amend create commit... don't understand

From
Mmat <matthieu.stigler@gmail.com>
Date
Feb 24, 2010, 21:27 UTC
Message-ID
<4B8599C4.1050409@gmail.com>
Hi

Sorry for this question that might appear soo simple but I'm a little bit lost :-(

When editing my code, I like to --amend it a lot between bigger commits. But when looking on gitk, I see that git commit blabla --amend

does create each and every time a new commit, I mean: with git log, there is only one commit, but on gitk, I see many, with the same name but different revision ID.... My understanding was that it would only replace, not create each time a new revision.. Could you please explain me where Iàm wrong and what is happening exactly?

Furthermore, if I wish to delete all those intermediary amend commit, can I do it? If yes, how?

Thanks a lot for this help!
Matthieu
Next: Matthieu Moy
Message 1 of 4 in “Looks like --amend create commit... don't understand”
  1. matFeb 24, 2010
  2. Matthieu MoyFeb 24, 2010
  3. matFeb 25, 2010
  4. Octavio AlvarezFeb 25, 2010

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.