Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 140957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:41:57+00:00 2026-05-11T07:41:57+00:00

SVN made branching much easier by making branches really cheap, but merges remain a

  • 0

SVN made branching much easier by making branches really cheap, but merges remain a real problem in SVN – one that Git supposedly solves.

Does Git achieve this, and how?

(disclaimer: All I know about Git is based on the Linus lecture – total git noob here)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:41:58+00:00Added an answer on May 11, 2026 at 7:41 am

    Git will not prevent conflict in merges but can reconcile history even when they do not share any parent ancestor.
    (through The grafts file (.git/info/grafts), which is a list, one per line, of a commit followed by its parents, that you can modify for that ‘reconciliation’ purpose.)
    So pretty powerful right there.

    But to really have a glimpse on ‘how merges have been thought through’, you can start by turning to Linus himself, and realize this issue is not so much about ‘algorithm’:

    Linus: Me personally, I want to have something that is very repeatable and non-clever. Something I understand or tells me that it can’t do it.
    And quite frankly, merging single-file history without taking all the other files’ history into account makes me go ‘ugh’.

    The important part of a merge is not how it handles conflicts (which need to be verified by a human anyway if they are at all interesting), but that it should meld the history together right so that you have a new solid base for future merges.

    In other words, the important part is the trivial part: the naming of the parents, and keeping track of their relationship. Not the clashes.

    And it looks like 99% of SCM people seem to think that the solution to that is to be more clever about content merges. Which misses the point entirely.


    So Wincent Colaiuta adds (emphasis mine):

    There is no need for fancy metadata, rename tracking and so forth.
    The only thing you need to store is the state of the tree before and after each change.

    What files were renamed? Which ones were copied? Which ones were deleted? What lines were added? Which ones were removed? Which lines had changes made inside them? Which slabs of text were copied from one file to another?
    You shouldn’t have to care about any of these questions and you certainly shouldn’t have to keep special tracking data in order to help you answer them: all the changes to the tree (additions, deletes, renames, edits etc) are implicitly encoded in the delta between the two states of the tree; you just track what is the content.

    Absolutely everything can (and should) be inferred.

    Git breaks the mould because it thinks about content, not files.
    It doesn’t track renames, it tracks content. And it does so at a whole-tree level.
    This is a radical departure from most version control systems.
    It doesn’t bother trying to store per-file histories; it instead stores the history at the tree level.
    When you perform a diff you are comparing two trees, not two files.

    The other fundamentally smart design decision is how Git does merges.
    The merging algorithms are smart but they don’t try to be too smart. Unambiguous decisions are made automatically, but when there’s doubt it’s up to the user to decide.
    This is the way it should be. You don’t want a machine making those decisions for you. You never will want it.
    That’s the fundamental insight in the Git approach to merging: while every other version control system is trying to get smarter, Git is happily self-described as the ‘stupid content manager’, and it’s better for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with my SVN X. I made a commit into my
My company has been using SVN, but has recently made the move to TFS
I made a whole bunch of changes to one of the branches. Now I
I have a problem with a SVN branch. I made a checkout of it
My company is moving from CVS to SVN. With CVS, I made branches for
I've made some researches and I found some topic close to my problem, but
In my git repo which is tracking a svn repo I have made a
SVN newbie (although so far I really like it (coming from CVS) Ok, here's
our svn had so far traditional layout: trunk branches/ tags/ i cloned whole the
I finally made a great step by abandoning SVN for Git and loving it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.