我忘了将 .ai 添加到我的 .gitignore 文件中,但是运行 $ git add . 并添加了相当多的.ai文件到索引中。
$ git add .
.ai
当我跑起来 $ git status 看到它们时,我想将它们从索引中删除。
$ git status
匆忙中,我跑了 $ git restore -s@ -SW 导致我所有的.ai文件都从我的工作树中消失了。我不应该使用W.
$ git restore -s@ -SW
W
有什么办法可以找回我的.ai文件吗?
git file restore git-worktree
file ×1
git ×1
git-worktree ×1
restore ×1