假设我在本地机器的仓库中有以下文件:
index.php
home.php
text.php
我提交了所有更改,Github repo ( origin) 是我这台本地机器的 repo 的精确副本。
接下来,我重命名text.php为unit_test.php. 我犯了。所以,现在我的 Github repo 有 4 个文件:index.php, home.php test.php& unit_test.php. 而当前;y,本地机器存储库没有任何test.php文件。那么,如何从 Github 存储库中删除此文件,因为这样做git rm test.php会No such file or directory出错。