我的最后三个提交如下:
commit 440badcebc459fd6e0aec6df3acd68bbfe797f14
Author: Michael J <michael@gmail.com>
Date: Sat Oct 12 02:27:20 2013 +0200
Add config.assets.initialize_on_precompile = false
commit 4ca67cdeeab3290bc3fb3349d6c1b606ed61d5f8
Author: Michael J <michael@gmail.com>
Date: Sat Oct 12 02:22:04 2013 +0200
Added a bogus file to shared.
commit 0dd36b5705598ccb7878c5eee9e09f8e1a75296e
Author: Michael J <michael@gmail.com>
Date: Sat Oct 12 02:17:24 2013 +0200
Change js structure.
我想用SO 答案中提到的方法恢复这三个提交,即通过
“......创建一个新的提交,它可以恢复您想要摆脱的更改......”
git revert -n master~5..master~2
我不确定将什么作为参数:master-something
, HEAD-something
, 提交消息或提交 ID?
鉴于上面的示例提交,我应该在 -n/--no-commit 之后添加什么作为参数?