开发者

git Status Shows Same File Twice - But with different path slash styles

开发者 https://www.devze.com 2023-02-17 05:42 出处:网络
When I do a git status, I see a change list that looks like this: #modified:CustomizablePDFs/InvoiceAdapter.php

When I do a git status, I see a change list that looks like this:

#       modified:   CustomizablePDFs/InvoiceAdapter.php
#       deleted开发者_开发技巧:    "CustomizablePDFs\\Model/AlignContainer.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).

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?

Thank you,

Ben


git add -A followed by a commit fixed the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消