{"thread":{"id":"11117","subject":"Pack several linear commits into one","startedAt":"2007-12-03T09:06:11Z","lastAt":"2007-12-03T09:32:39Z","messageCount":3,"participants":["Jacob Kroon","Peter Baumann","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"61752","messageId":"c0d4c9e90712030106u40b871ecjd5f7b8d078c8be36@mail.gmail.com","threadId":"11117","inReplyTo":null,"subject":"Pack several linear commits into one","fromName":"Jacob Kroon","fromEmail":"jacob.kroon@gmail.com","sentAt":"2007-12-03T09:06:11Z","receivedAt":"2007-12-03T09:06:11Z","isPatch":false,"sender":{"key":"jacob.kroon@gmail.com","avatar":null},"body":"Hi,\n\nIs there a tool for repacking several linear commits into one single ?\n\nPlease CC me since I'm not a subscriber to the list.\n\nBest Regards\nJacob Kroon\n"},{"id":"61755","messageId":"20071203092859.GA6259@xp.machine.xx","threadId":"11117","inReplyTo":"c0d4c9e90712030106u40b871ecjd5f7b8d078c8be36@mail.gmail.com","subject":"Re: Pack several linear commits into one","fromName":"Peter Baumann","fromEmail":"waste.manager@gmx.de","sentAt":"2007-12-03T09:28:59Z","receivedAt":"2007-12-03T09:28:59Z","isPatch":false,"sender":{"key":"waste.manager@gmx.de","avatar":null},"body":"On Mon, Dec 03, 2007 at 10:06:11AM +0100, Jacob Kroon wrote:\n> Hi,\n> \n> Is there a tool for repacking several linear commits into one single ?\n> \n> Please CC me since I'm not a subscriber to the list.\n> \n\nLook for git merge --squash  or  git cherry-pick --no-commit\n\n-Peter\n"},{"id":"61756","messageId":"m3y7ccunrh.fsf@roke.D-201","threadId":"11117","inReplyTo":"c0d4c9e90712030106u40b871ecjd5f7b8d078c8be36@mail.gmail.com","subject":"Re: Pack several linear commits into one","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-12-03T09:32:39Z","receivedAt":"2007-12-03T09:32:39Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Jacob Kroon\" <jacob.kroon@gmail.com> writes:\n\n> Is there a tool for repacking several linear commits into one single ?\n\nYou can use either \"git rebase --interactive\" and replace 'pick' with\n'squash', or (simpler for replacing all the commits by one big commit)\n\"git merge --squash\". See documentation for details.\n\nNote that if you want remove those 'several linear commits', you\nbetter not have them published yet.\n\n> Please CC me since I'm not a subscriber to the list.\n\nYou can read this list via archives, or using NNTP interface (in news\nreader):\n\n  nntp://news.gmane.org/gmane.comp.version-control.git\n\n-- \nJakub Narebski\nShadeHawk on #git\nPoland\n"}]}