Pack several linear commits into one

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Pack several linear commits into one

From: Jacob Kroon <hidden>
Date: 2016-06-15 22:43:55

Hi,

Is there a tool for repacking several linear commits into one single ?

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

Best Regards
Jacob Kroon

Re: Pack several linear commits into one

From: Peter Baumann <hidden>
Date: 2016-06-15 22:43:55

On Mon, Dec 03, 2007 at 10:06:11AM +0100, Jacob Kroon wrote:
Hi,

Is there a tool for repacking several linear commits into one single ?

Please CC me since I'm not a subscriber to the list.
Look for git merge --squash  or  git cherry-pick --no-commit

-Peter

Re: Pack several linear commits into one

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:43:55

"Jacob Kroon" [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help