我的 Git 状态显示deleted
我的工作树中的所有文件都不正确,它们仍然存在。
为了解决它,我应该执行git reset --hard
which 重置我对其他文件的所有修改。
知道如何解决它或它是如何发生的吗?
git status
输出:
On branch develop
Your branch is behind 'origin/develop' by 15 commits, and can be fast-forwarded.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: .gitignore
deleted: v3/.gitignore
deleted: v3/index-test.php
deleted: v3/index.php
deleted: v3/protected/.gitignore
deleted: v3/protected/.htaccess
deleted: v3/protected/Gruntfile.js
编辑:以上不是完整的git status
输出。我正在处理的那些文件不会被删除。