git:由于未知,无法合并文件。gitignore规则
我正在合并一个文件,但在完成3向合并后,我看到:git:由于未知,无法合并文件。gitignore规则,git,version-control,merge,dvcs,gitignore,Git,Version Control,Merge,Dvcs,Gitignore,我正在合并一个文件,但在完成3向合并后,我看到: Normal merge conflict for 'myfile.ext': {local}: modified file {remote}: modified file Hit return to start merge resolution tool (araxis): The following paths are ignored by one of your .gitignore files: Installers Use -
Normal merge conflict for 'myfile.ext':
{local}: modified file
{remote}: modified file
Hit return to start merge resolution tool (araxis):
The following paths are ignored by one of your .gitignore files:
Installers
Use -f if you really want to add them.
fatal: no files added
而git状态
给出:
Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add <file>..." to mark resolution)
#
# both modified: myfile.ext
未合并的路径:
#(使用“git重置磁头…”取消分级)
#(使用“git add…”标记分辨率)
#
#都已修改:myfile.ext
我试着找到那辆车,但没有结果。
有没有办法在修复问题之前强制合并.gitignore文件?如果要强制合并到特定分支 关于gitignore文件,下面给出了什么
git config --get core.excludesfile
Installers
在里面吗?谢谢马克。我看了你的链接,我想要的东西不同于接受我们的或他们的。我确实需要明确解决冲突,然后签入。所以我真的必须在那个文件上运行git mergetool。关于core.excludesfile的提示非常有用,我修复了忽略规则。谢谢