赞
踩
1、git log
查看提交记录
2、git reset --soft <版本号>
重置至指定版本的提交
可通过git log
再次查看提交记录,确认是否撤回
注:git reset --soft <版本号>
命令只会退回本地提交记录,远程此时还未撤回
3、git push <remotename> <commit SHA>:<remotebranchname> --force
<remotename>
远程仓库名,默认为origin<commit SHA>
提交的唯一码<remotebranchname>
远程分支名将指定commit记录push至远程,完成撤回远程push记录。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。