Saving branches with git

With SVN, I have the following setting:

/tags/
/trunk/
/branches/
/branches/my_feature
/branches/my_other_feature

I want all branches to synchronize with the trunk, so I periodically run svn merge for the branch for the trunk.

However, I also want all branches to synchronize with each other to avoid conflicts, since any given lifetime of a branch can be a couple of months or more. If I have a dozen branches, I will have a nasty mesh with SVN, and that would be impractical.

My question is to use Git instead of SVN help with branch and trunk synchronization?

+3
source share
3 answers

, rebase.

my_feature :

git rebase master

master (trunk) my_feature.

my_feature my_other_feature , , . my_feature my_other_feature viceversa, .

+6

, . DVCSes (Git, Mercurial Bazaar) , , .

, - , , , SVN.

+2

Note that you must use Git completely instead of SVN in order to get the desired functionality. If you just use Git as the front-end for SVN (vai git svn), this is likely to cause SVN users to not display correctly.

0
source

Source: https://habr.com/ru/post/1715564/


All Articles