相关疑难解决方法(0)

git:合并两个分支:什么方向?

我们有以下情况:

             A --- B --- C --- ... --- iphone
           /
  ... --- last-working --- ... --- master
Run Code Online (Sandbox Code Playgroud)

在上次工作和iPhone之间,进行了3​​2次提交.在last-working和master之间,做了很多提交.

我现在想要的是一个新的分支,我将iphone和当前的主人合并在一起.在以后的某个时间,这应该合并到主人.

首先,我计划做:

git checkout iphone -b iphone31
git merge master
Run Code Online (Sandbox Code Playgroud)

但后来我想,如果做得更好:

git checkout master -b iphone31
git merge iphone
Run Code Online (Sandbox Code Playgroud)

现在我想知道.结果会有什么不同?合并会有不同的表现吗?

我已经尝试了两种,正如我所料,我遇到了很多冲突,因为与主人相比,iphone真的很老了.现在我想知道合并它们的最简单方法.

也许甚至从大师开始并将每一次提交的iphone合并到它会更容易?喜欢这样做:

git checkout master -b iphone31
git merge A
git merge B
git merge C
...
git merge iphone
Run Code Online (Sandbox Code Playgroud)

最后,当这个合并完成时(即所有冲突都已解决且工作正常),我想这样做:

git checkout master
git merge iphone31
Run Code Online (Sandbox Code Playgroud)

git merge git-merge

61
推荐指数
3
解决办法
7万
查看次数

为什么使用忽略匹配行的diff不能按预期工作?

我有以下文件:

FILE1.TXT

###################################################
Dump stat Title information for 'ssummary' view
###################################################
Tab=> 'Instance' Title=> {text {Total instances: 7831}}
Tab=> 'Device' Title=> {text {Total spice devices: 256}}
Tab=> 'Memory' Title=> {text {Total memory allocated: 962192 kB}}
Tab=> 'Cpu' Title=> {text {Total cumulative CPU time: 9030 ms}}
Run Code Online (Sandbox Code Playgroud)

FILE2.TXT

###################################################
Dump stat Title information for 'ssummary' view
###################################################
Tab=> 'Instance' Title=> {text {Total instances: 7831}}
Tab=> 'Device' Title=> {text {Total spice devices: 256}}
Tab=> 'Memory' Title=> {text {Total memory allocated: 9621932 kB}}
Tab=> …
Run Code Online (Sandbox Code Playgroud)

shell diff ignore

10
推荐指数
3
解决办法
8354
查看次数

标签 统计

diff ×1

git ×1

git-merge ×1

ignore ×1

merge ×1

shell ×1