代码回滚个人记录

160 阅读1分钟

此方法会把线上的记录删除

git log     //查看提交记录

git reset --hard xxxxxxxx   // 回归到指定commit

git push -f origin dev 
git reset --soft xxxx