我有一个git项目。 我刚刚提交了一次,然后删除了一些目录。抱歉,我的失误。 现在我想恢复那些已经被删除的目录。我该怎么做?
一种方法是使用git reset:
git reset
git reset --hard HEAD