这是我的文件夹“ somefolder”的历史记录
$ git log somefolder
commit 89cd
More changes to somefolder
commit ef47a
Updating somefolder and other stuff
commit e095
Bugs fixed in somefolder
我想将某个文件夹恢复为“在某些文件夹中固定的错误”提交。
由于第二个提交涉及某个文件夹之外的更改,因此我不想还原此提交。
我猜最安全的方法是在提交e095和89cd之间创建仅应用于某些文件夹的差异/补丁,然后应用该补丁。我怎样才能做到这一点?
git reset e095 -- some/folder改用