当我检查文件的状态(带有git status file_name.py)时,出现以下消息:
All conflicts fixed but you are still merging.
(use "git commit" to conclude merge)
Run Code Online (Sandbox Code Playgroud)
因此,我尝试使用git commit。结果,我得到以下错误:
error: Committing is not possible because you have unmerged files.
Run Code Online (Sandbox Code Playgroud)
我有两个文件名U,它们前面有字母。当我检查他们的状态时,git status file2.py我得到以下信息:
Unmerged paths:
(use "git add/rm <file>..." as appropriate to mark resolution)
deleted by them: path/to/my/file2.py
no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)
现在,我不确定这些文件出了什么问题以及应该如何处理。
消息说您要与之合并的另一个分支删除了该文件,因此您已对其进行了一些修改。
现在,您应该确认删除的方式git rm <path>或更改的方式git add <path>,然后继续进行提交。