回退(reset)
git reset --hard 5212d58bebfe0ba3cb57243dce375c6d4332aec7//版本号
git push -f
反做(revert)//撤回单独版本
git revert -n 8b89621019c9adc6fc4d242cd41daeb13aeb9861//版本号
git commit -m "revert add text.txt"//提交语
git push
Git 命令回滚代码
最新推荐文章于 2024-07-18 23:40:43 发布