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

Re: git-kill: rewrite history removing a commit

From
MTMichael S. Tsirkin <mst@mellanox.co.il>
Date
Jan 31, 2007, 20:54 UTC
Message-ID
<20070131205402.GH21097@mellanox.co.il>
In-Reply-To
<7v7iv3uelv.fsf@assigned-by-dhcp.cox.net>
Show 6 quoted lines
> When I find master~8 and master~9 to be undesirable, I would do:
> 
> 	$ git rebase --onto master~10 master~8
> 
> which rebuilds master~7 and onward on top of master~10, thereby
> dropping two commits.

That's good to know. So it turns out I can just rewrite mine as a one-liner: git-rebase --onto $1~1 $1

Thanks,
-- 
MST
Previous: Junio C Hamano
Message 5 of 5 in “git-kill: rewrite history removing a commit”
  1. Michael S. TsirkinJan 31, 2007
  2. Yann DirsonJan 31, 2007
  3. Catalin MarinasFeb 1, 2007
  4. Junio C HamanoJan 31, 2007
  5. Michael S. TsirkinJan 31, 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.