I deleted some files from my local repository, and when I type git status it says they have been deleted but when I try to add them it says that they did not match any files.

有帮助吗?

解决方案

Try

git add -u <filename>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top