git回退到指定commit并同步到线上

查看commit id

git log

本地回退到指定commitid

 git reset --hard 6acd0f4cfc78302c5563facc1ebc7c84384aef3e

 

推送到远程

git push origin feature/20200219-1.4.4-restructure -f

 

也可以简写为  git push  -f

 

posted @   丁少华  阅读(548)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示