Git回滚远程分支

tech2022-09-22  68

本地代码回滚到上一版本(或者指定版本)
git reset --hard HEAD~1
加入-f参数,强制提交,远程端将强制跟新到reset版本
git push -f origin master
最新回复(0)