我刚刚合并了两个分支“branch1”和“branch2”。问题是现在有很多冲突,有时会出现重复的内容(有可能吗??)。
我想要做的是强制将“branch1”中的某些文件与“branch2”合并,相反,强制将“branch2”中的某些文件与“branch1”合并,因为我知道我现在在“branch1”上。可能吗 ?
更新: git-merge 似乎有问题?假设我保留了 branch1 版本,那么
echo $this->fetch('prehome.html');
die;
会出现两次,请参阅:
protected function prehomepage()
{
$var = 'myvar';
echo $this->fetch('prehome.html');
die;
}
<<<<<<< HEAD
$this->mySmarty->assign('title', 'Primagora');
echo $this->fetch('prehome.html');
die;
}
/**
* Generate the campaign block for the general sidebar, called through AJAX.
*/
protected function getCampaignBlock()
{
$from = Utils::fromGet('from');
echo $this->getCampaignSidebarBlock($from);
die();
}
=======
/**
* Generate the campaign block for the general sidebar, called through AJAX.
*/
protected function getCampaignBlock()
{
$from = Utils::fromGet('from');
echo $this->getCampaignSidebarBlock($from);
die();
}
>>>>>>> branch2