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

Re: Git feature request: --amend older commit

From
GSGeorge Spelvin <linux@horizon.com>
Date
Aug 17, 2012, 17:00 UTC
Message-ID
<20120817170005.27451.qmail@science.horizon.com>
In-Reply-To
<502E725B.2040906@alum.mit.edu>
> Have you tried "git rebase --autosquash"?  It does part of what you are 
> asking for and additionally allows multiple fixup commits to be queued 
> up and processed in a single rebase.

No, I hadn't! It's not *quite* as simple as what I had hoped for, but definitely is progress in that direction.

In particular, I can probably manage to use those to write a script that does what I want. Something that ends up with something like "EDITOR=/bin/true git rebase -i --autosquash $base"

Thanks you! I apologize for my failure to (Re-) RTFM. I have done so numerous times, but the feature wasn't there last time I looked.

Previous: Michael HaggertyNext: Thomas Rast
Message 3 of 6 in “Git feature request: --amend older commit”
  1. George SpelvinAug 17, 2012
  2. Michael HaggertyAug 17, 2012
  3. George SpelvinAug 17, 2012
  4. Thomas RastAug 17, 2012
  5. Jared HanceAug 18, 2012
  6. Junio C HamanoAug 18, 2012

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.