如何使 git 在我提交后不显示已删除的文件列表

How to make git not show the deleted file list after I commit

[master +0 ~0 -1]> 这就是我的 git 仓库在我提交后的样子。 +0 ~0 -1 都是红色的。

问红色的+0 ~0 -1 是什么意思? 问:如果这表明文件已删除,我该如何删除它,因为我已经提交了更改,即我希望我的存储库看起来像 [master]

在 git 状态下我得到了这个结果

On branch master 
Your branch is up-to-date with 'origin/master'. 
Changes not staged for commit: 
(use "git add/rm <file>..." to update what will be committed) 
(use "git checkout -- <file>..." to discard changes in working directory) 
deleted: ClickForHelp/bin/classes/com/example/clickforhelp/controllers/MainActivity$GetLo‌​cationsAsyncTask.class 
no changes added to commit (use "git add" and/or "git commit -a")

好吧,这可能是 -1 行或其他内容,但要掌握,无论您身在何处,都可以使用

git reset --hard master

请确保您没有任何不介意丢失的东西。