git reset 远程分支的方法

https://stackoverflow.com/questions/5816688/resetting-remote-to-a-certain-commit

 

 git reset --hard <commit-hash>
 git push -f origin master

 

posted @ 2023-05-05 10:57  yinhuachen  阅读(41)  评论(0编辑  收藏  举报