I keep hearing that branching in git is so much easier than in SVN, because it’s easier to merge the branch back to trunk/master. I’ve read some tutorials, but they only covered basic merge conflicts (“Alice changed line 8 of code.cpp and at the same time Bob changed line 8 of code.cpp…”) and there are no differences between SVN and all other distributed source control systems.
Can you give me the examples of changes in branch that would cause troubles in SVN repository, but would be handled gracefully by git?
I finally had some time to tinker with branches/merging with git and svn and found the case that kills svn but works perfectly with git:
Let’s say the project consists of those files:
SVN loses all changes made in branch in point 3, similar changes in git are perfectly merged. That’s enough for me to reject SVN as version control system for any project that requires branching.