svn - What are the advantages/disadvantages of Git's snapshot-based approach in practice compared to the traditional VCSs? -


in official git book can read this:

git thinks data more stream of snapshots. important distinction between git , other vcss. makes git reconsider every aspect of version control other systems copied previous generation. makes git more mini filesystem incredibly powerful tools built on top of it, rather vcs. we’ll explore of benefits gain thinking of data way when cover git branching in git branching.

what difference make in practice? in book says benefits covered in branching topic not mentioned there , not see why important. example can create branches in svn, can create patches (like cherry picking) , on. why snapshot behavior useful compared svn?

note git , have no intention of bashing wish understand better.

one of main advantages remains in term of merging, domain svn struggles @ time.
(see "how and/or why merging in git better in svn?")

you combine graph of commits (dag) representing branches (instead of svn subtrees) , snapshot representation associated each commit:

from pro git book:

https://git-scm.com/book/en/v2/book/03-git-branching/images/basic-merging-1.png

git simple three-way merge, using 2 snapshots pointed branch tips , common ancestor of two.

instead of moving branch pointer forward, git creates new snapshot results three-way merge , automatically creates new commit points it. referred merge commit, , special in has more 1 parent.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -