美文网首页
使用Sourcetree 删除已经提交到远程的commit

使用Sourcetree 删除已经提交到远程的commit

作者: 青天揽明月 | 来源:发表于2016-09-30 10:23 被阅读0次

首先是重置到上一次commit:

Paste_Image.png

然后打开终端:

Paste_Image.png

重新按照想要的方式更新代码

使用 git push -f 命令 使本次提交为强制push

最后用sourcetree 提交代码,完成
之前的错误提交就无影无踪了~

相关文章

网友评论

      本文标题:使用Sourcetree 删除已经提交到远程的commit

      本文链接:https://www.haomeiwen.com/subject/ydblyttx.html