git rebase -i HEAD~x (x =提交数量) 在执行记事本文件时将打开“放置'除了你的承诺之外 git push --force-with-lease。
当我添加drop时,它会显示未知命令。
请告诉我,我只想删除特定的提交
答案 0 :(得分:2)
As mentioned in the second answer to this question, you could use git revert --strategy resolve <commit>
where <commit>
is the identifier of the commit to be reverted.