我正在合并兩個分支并遇到很多合并沖突,例如
CONFLICT (add/add): Merge conflict in pika/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js
Auto-merging pika/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js
他們不適合我的膩??子終端。所以我中止了合并并運行了一些 git diff 命令。
git diff origin/dev-kasitesivu_py_3.7..origin/dev-kasitesivu -- pika/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js
diff --git a/pika/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js b/pika/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js
old mode 100644
new mode 100755
對于大量檔案,唯一的變化似乎是上面的模式(我不知道這意味著什么)。我試圖從運行我要合并的分支的目錄中復制檔案,但 git status 沒有顯示任何更改。linux diff-commad 也沒有。
我該如何解決沖突?
uj5u.com熱心網友回復:
linux diff命令比較檔案行。即檔案的內容。您的沖突是檔案權限之一。您必須選擇檔案實際需要的權限。755 通常在目錄上設定,但在您的情況下,可能已在檔案上設定,由其他行程或可能是sgid 粘性位。
您應該能夠通過將受影響檔案的檔案權限設定為old mode. 喜歡:
for x in those_files; do chmod 0644 $x; done
或者類似的東西。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/426169.html
下一篇:子模塊中的相對路徑失敗
