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

Re: Pack several linear commits into one

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 3, 2007, 09:32 UTC
Message-ID
<m3y7ccunrh.fsf@roke.D-201>
In-Reply-To
<c0d4c9e90712030106u40b871ecjd5f7b8d078c8be36@mail.gmail.com>
"Jacob Kroon" <jacob.kroon@gmail.com> writes:
> Is there a tool for repacking several linear commits into one single ?

You can use either "git rebase --interactive" and replace 'pick' with 'squash', or (simpler for replacing all the commits by one big commit) "git merge --squash". See documentation for details.

Note that if you want remove those 'several linear commits', you better not have them published yet.

> Please CC me since I'm not a subscriber to the list.

You can read this list via archives, or using NNTP interface (in news reader):

  nntp://news.gmane.org/gmane.comp.version-control.git
-- 
Jakub Narebski
ShadeHawk on #git
Poland
Previous: Peter Baumann
Message 3 of 3 in “Pack several linear commits into one”
  1. Jacob KroonDec 3, 2007
  2. Peter BaumannDec 3, 2007
  3. Jakub NarebskiDec 3, 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.