Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    Your comment about rebasing having problems with merge resolution is not true. A rebase is the same kind of merge as an actual merge. Git is just merging commits under the hood. Rebasing and resolving a merge conflict doesn't damage the commit history. Rebasing and improperly resolving a merge conflict damages things, which is just as likely with a normal merge. I do have to agree that feature branches adds complexity, but this could be necessary complexity if developers must juggle multiple unrelated changes. Commented Sep 3, 2014 at 15:23
  • So you're saying that merges can destroy history?! Sounds like it's just more justification for avoiding having too many branches! Commented Sep 3, 2014 at 15:27
  • 1
    Merges cannot destroy history. I think you might be misunderstanding how rebasing and merging works. When a merge conflict gets triggered, it is up to the human to resolve it. If the human resolves it incorrectly, you can't blame Git (or SVN, or CVS, or {insert source control here}). Commented Sep 3, 2014 at 16:05
  • Now what you're saying sort of conflicts with what you said before. Did you read the article I quoted from? Do you understand the context in which a rebase will lose history? Commented Sep 3, 2014 at 16:06
  • 1
    I read the article. "At Keen we try to push our code after nearly each commit." That sounds crazy to me. Either they're making excessively big commits, or they're pushing out code that isn't ready yet. If you make all your commits public immediately, then yeah, rebasing will cause problems. It's the "Doctor, doctor, it hurts when I do this" principle. Commented Sep 12, 2014 at 21:18