我使用php-git客戶端來拉我的php腳本中的分支。 每當我從主人結帳到測試我得到以下錯誤。git:拉不可能,因爲你有未合併的文件
error: Pull is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
我的文件位於bitbucket服務器上。我在bitbucket上添加/修改文件並在那裏提交。
我不明白,我不會在我的本地機器上進行任何操作,仍然會出現此錯誤。
以下是我的'git status'輸出。
Your branch is up-to-date with 'origin/testing'.
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Changes to be committed:
modified: g_1.0.yaml
new file: potter_3.4.yaml
new file: potter_3.4.yml
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: abc_1.0.json
在該文件夾/目錄中運行'git status'。 –
'由於未解決的衝突而退出...... ...錯誤消息不能比這更清晰。輸入'git status'來查看哪些文件仍然存在衝突。 –
添加了我的git狀態輸出,我的問題是如果我不在本地修改任何內容,所有內容都會在服務器上進行修改,爲什麼會出現此錯誤? – Nilesh