Re: Git (svn) merge - but ignore certain commits?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Harris
Date: Saturday, December 27, 2008 - 5:17 pm

On Sat, Dec 27, 2008 at 8:02 AM, "Peter Valdemar Mørch (Lists)" wrote:

"git rebase -i trunk" after you "git merge". Delete the lines that
contain the will-be-reverted commits and the revert commits. Actually,
skip the reverts in the first place to save time.

Normally I wouldn't suggest it, since it will throw away your merge,
but "git svn dcommit" does an implicit rebase anyway, so you will lose
nothing.


If your branch is so ugly that you want to toss many of the commits
anyway, maybe "git merge --squash" is what you are looking for? Or
maybe you want to "git rebase -i" before merging?


Use many short-lived feature branches, not few long-lived generic
"development" branches. Merge-and-delete is easier than herding
reverts.

Peter Harris
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git (svn) merge - but ignore certain commits?, "Peter Valdemar Mørc ..., (Sat Dec 27, 6:02 am)
Re: Git (svn) merge - but ignore certain commits?, Peter Harris, (Sat Dec 27, 5:17 pm)
Re: Git (svn) merge - but ignore certain commits?, "Peter Valdemar Mørc ..., (Thu Jan 8, 10:49 am)
Re: Git (svn) merge - but ignore certain commits?, Peter Harris, (Thu Jan 8, 11:29 am)
Re: Git (svn) merge - but ignore certain commits?, "Peter Valdemar Mørc ..., (Thu Jan 8, 12:17 pm)
Re: Git (svn) merge - but ignore certain commits?, Peter Harris, (Thu Jan 8, 1:00 pm)