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 @ 2020-02-20 15:02  丁少华  阅读(583)  评论(0)    收藏  举报