--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
Squashing --------- WARNING: "git rebase" changes history. Be careful. Google it. git rebase --interactive HEAD~10 (then change all but the first "pick" to "squash") squash the last 10 commits into one big commit
--
Just for the record.I would do:git checkout my_branchgit reset --soft trunkgit commit -aIt does not require the creation of a second branch nor the manual process of an interactive rebase.git reset --soft keeps your working copy unchanged but makes my_branch point to the same revision as trunk. In other words, it looks like you had just created my_branch from trunk and did all the changes that are contained in trunk...my_branch).Best regards,Dominic
I agree with zbehan. git rebase -i is the way to go. But I'd like to highlight
an alternative workflow (what I use). I use git commit --amend when amending
a change I'm working on. I still get the checkpoint functionality via
git reflog.