alvoro Asked:2020-08-10 05:32:20 +0000 UTC2020-08-10 05:32:20 +0000 UTC 2020-08-10 05:32:20 +0000 UTC 还原多个 git 附加组件 772 你好。 git init echo first > file git add file echo second > file git add file echo third > file git add file 执行这些命令后如何获取添加到索引的文件的第一或第二版本? git 1 个回答 Voted Best Answer sanmai 2020-08-10T08:38:13Z2020-08-10T08:38:13Z 首先你做: git fsck --lost-found 然后查看.git/lost-found/子目录.git/lost-found/other/,看看你丢失的东西是否出现在那里。 为了不做这一切,最好更频繁地提交。它们总是可以通过调用粘合到一个提交中git rebase -i origin,依此类推。
首先你做:
然后查看
.git/lost-found/子目录.git/lost-found/other/,看看你丢失的东西是否出现在那里。为了不做这一切,最好更频繁地提交。它们总是可以通过调用粘合到一个提交中
git rebase -i origin,依此类推。