8
It is known that in the SVN, when one creates a branch (or even a tag), a copy of all the files of trunk to the folder inside the directory branches.
Little by little I’ve been using git and I realized that by creating a branch it does not copy any file, but even so I can edit the same file in two different branches, ie I can keep two, or more versions of the same file.
My question is: Like the git treats this question? What is the "magic" that the git does to be able to maintain "multiple versions" of the same file?
I don’t know the details so I won’t answer but he works with deltas of what you modify and that’s all it needs. It calculates the state of the branch instead of having copies.
– Maniero
I confess that I was already waiting for a reply from you @bigown
– Jéf Bueno
@Jéfersonbueno Still waiting for the perfect answer?
– Fellipe Soares
@Fellipesoares Yes, it is customary for me to take some time to accept an answer. I like to give opportunities if more people want to answer
– Jéf Bueno
@Jéfersonbueno I asked just to know if I should research more about =) Thanks.
– Fellipe Soares
@Fellipesoares Your answer is clear, of course edits/ improvements will be well accepted. But, really, it’s just a matter of custom.
– Jéf Bueno