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

Fix commit message after push?

From
Sskillzero@gmail.com <skillzero@gmail.com>
Date
Dec 27, 2008, 21:13 UTC
Message-ID
<2729632a0812271313l74e9bb85l857a3ad3a3f0d8d8@mail.gmail.com>

Is there a way to fix a commit message after the commit has already pushed to someone else? I typed the wrong commit message then I pushed to the remote repository before realizing it. I tried git commit --amend to fix it in my local repository, but it rejects the subsequent push. I somewhat understand why it's rejecting it (my --amend rewrote history and now they are out-of-sync), but I was wondering if there is a general way to handle situations like this with git.

Next: Miklos Vajna
Message 1 of 2 in “Fix commit message after push?”
  1. skillzero@gmail.comDec 27, 2008
  2. Miklos VajnaDec 27, 2008

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.