Remove all deleted files from “changed but not updated” in Git

后端 未结 3 1737
萌比男神i
萌比男神i 2020-12-07 23:16

When I run git status, I have a bunch of lines of the form

deleted:    dir/file.js

I can remove each of these individually wit

3条回答
  •  一生所求
    2020-12-07 23:38

    You can still git rm after the fact, but if you want, you can restore all your changed files (including deletions) to the last revision with git reset --hard

提交回复
热议问题