回退代码

1.git log 查看commitId,reset到该版本

  git reset --hard ca5cbd987205f328a59ae577......

 

// 强制覆盖远程分支代码

2.git push -f   

3.git reflog

或git log --pretty=oneline

posted @ 2018-12-03 17:01  rebaomi  阅读(185)  评论(0编辑  收藏  举报