快进合并两个分支忽略特定的字符模式

时间:2015-06-01 09:26:57

标签: git merge git-merge

有没有办法合并来自其他分支的提交,只使用快进合并,忽略像命名空间/包这样的特定字符模式?

例如,我想在

中合并几行
com.company.client1.custom

...public class Bicycle {

// the Bicycle class has
// three fields
public int cadence;
public int gear;
public int speed;
}

进入另一个banch,我在某个文件中有这个:

com.company.client2.custom

...public class Bicycle {

// the Bicycle class has
// three fields
public int cadence;
public int gear;
}

我想在代码段中合并最后一个代码行,但我不想以现在的方式覆盖包。

0 个答案:

没有答案
相关问题