当我执行git status时,看到的更改列表如下所示:
When I do a git status, I see a change list that looks like this:
# modified: CustomizablePDFs/InvoiceAdapter.php # deleted: "CustomizablePDFs\\Model/AlignContainer.php"如果我add然后commit CustomizablePDFs/InvoiceAdapter.php,它将被提交(应该如此),并且不再出现在状态列表中(良好).
If I add then commit CustomizablePDFs/InvoiceAdapter.php, it will be commited (as it should be) and no longer appear in the status list (good).
但是,git status仍会在状态列表上显示deleted: "CustomizablePDFs\\Model/AlignContainer.php".如果我使用该文件路径进行git rm操作,则无法显示pathspec与任何文件都不匹配.
However, git status will still show deleted: "CustomizablePDFs\\Model/AlignContainer.php" on the status list. If I do a git rm using that file path, it fails saying that the pathspec did not match any files.
如何从状态列表中删除该条目?
How do I remove this entry from the status list?
谢谢你, 本
推荐答案git add -A然后执行提交即可解决此问题.
git add -A followed by a commit fixed the problem.
更多推荐
git Status显示两次相同的文件
发布评论