git branch - How to use Git for branches with very similiar code -


I have a project in git and there are two branches in which almost one code is basically two versions of the hardware unit There are codes to communicate with most codes are the same but there are differences due to changes in the underlying hardware

For some other reasons, we do not want to merge two branches in one and " And if version B is a bit different ... "build We do. So every time we make "global" changes, we have to make it in both the branches. It may be disturbing, but with the help of Tortoiseit and its merge tool, it is a quick task to transfer changes from branch to branch and I am afraid that there is no mechanism in GIT which will make it easier. But what do I want to do at least GIT (Log In Log) know that both of these branches have been "conceptually merged". Is there any way to do this?

For perfection - this is a delphi project, but I do not think it is relevant to the problem.

I will track branches from each other.

Create branches:

  GIT checkout- BB1 original / master GIT pushing original head GIT checkout -BB2 original / B1 GIT push original HEAD   

Now B2 track B1.

After updating B1, you can do this to rebate branch attributes on B2 to the new version of B1:

  git checkout b2 git pull -r    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -