git回退到历史版本
git回退到历史版本暴力的方式来恢复到指定的提交git reset --hard <target_commit_id> #或 git checkout <target_commit_id> git push -f #强制更新远程的分支指针温和的方式git reset --hard <target_commit_id> #将代码切换到目标提交的 id。git reset --soft origin/source #将当前代码切换回最新的提交。#
复制链接