2013-06-26 27 views
0

我被合併文件,但在完成合並3路,我看到了這一點:的git:不能將文件合併由於未知的.gitignore規則

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 status給出:

Unmerged paths: 
# (use "git reset HEAD <file>..." to unstage) 
# (use "git add <file>..." to mark resolution) 
# 
#  both modified:  myfile.ext 

我試圖找到.gitignore,但它沒有結果。 在解決問題.gitignore文件之前,是否有辦法強制合併?

回答

1

如果要強制合併到一個特定分支see this question

關於gitignore文件,請問下面舉?

git config --get core.excludesfile 

Installers在那裏?

+0

感謝馬克。我看着你的鏈接,我想要一些與接受不同的東西 - 我們的或他們的。我確實需要明確地解決衝突,然後檢入。所以我真的必須在該文件上運行git mergetool。你提到core.excludesfile是非常有用的,我修正了忽略規則。謝謝! – kakyo

+0

很高興我能幫上忙 –