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

Re: *Non*-interactive squash a range ?

From
DSDaniele Segato <daniele.bilug@gmail.com>
Date
Jul 5, 2010, 07:00 UTC
Message-ID
<AANLkTimVgEUofsrZ0SnCXdW3zMF0SOfup4lQBXwWXXP7@mail.gmail.com>
In-Reply-To
<AANLkTimTx2dVlK9KKi1nZpOadwDcfyzhE8nffCyK1Sqm@mail.gmail.com>
On Sat, Jul 3, 2010 at 3:38 PM, David <bouncingcats@gmail.com> wrote:
> Having successfully used rebase -i to squash, I wonder about some
> method to *non*-interactively squash a sequence of intermediate
> commits. On a local experimental branch.
[...]
Show 7 quoted lines
> My desired result is this:
>
>      ------------------K  <cleanbranch>
>     /
>    E---F---G---H---I---J  <uglybranch>
>
> where K and J are identical worktrees.
why don't you:
git checkout -b cleanbranch E~
git merge --squash J

regards, Daniele Segato

Previous: Johannes Sixt
Message 3 of 3 in “*Non*-interactive squash a range ?”
  1. DavidJul 3, 2010
  2. Johannes SixtJul 5, 2010
  3. Daniele SegatoJul 5, 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.