git回退分支到某版本,废弃某版本后面的所有提交;
git reset --hard 目标版本号
强行推送 -f
git push -f
如失败
使用管理员账号进入git中的项目设计,setting> repository>protected branches > unprotect 关闭保护
git回退分支到某版本,废弃某版本后面的所有提交;
git reset --hard 目标版本号
强行推送 -f
git push -f
如失败
使用管理员账号进入git中的项目设计,setting> repository>protected branches > unprotect 关闭保护