Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我直接在远程仓库上使用了 git commit 命令,然后 git 硬重置到 HEAD^,我不知道远程目录的哪些文件被删除了,是否可以找到我的远程工作目录的文件的历史记录?也许一个 bash 命令就足够了?
您可以查看哪些文件被删除:
git log --diff-filter=D --summary | grep delete