- force reset to the version of the last two 取消当前版本之前的两次提交
git reset --hard HEAD~2
- force push to the remote re 强制提交到远程版本库,从而删除之前的两次提交数据
git push origin HEAD --force
标签:
git
日期: 2014-06-20 17:30:06, 10 years and 210 days ago
git reset --hard HEAD~2
git push origin HEAD --force