撤销Github上的提交

我的提交历史为 a->b->c->d,我想要令d消失。

[code lang=”bash”]
git reset –hard d的标识符
git push -f
[/code]

发表评论

电子邮件地址不会被公开。

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)