如何从Bitbucket中删除和特定提交

时间:2017-07-17 15:22:40

标签: bitbucket

git rebase -i HEAD~x (x =提交数量) 在执行记事本文件时将打开“放置'除了你的承诺之外 git push --force-with-lease。

当我添加drop时,它会显示未知命令。

请告诉我,我只想删除特定的提交

1 个答案:

答案 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.