回滚
# 1.查询出commitId
git log -pretty=oneline
# 2.回滚指定版本的commitId
git reset --hard commitId
# 3.强推保证本地和远程同步
git push -f
# 4.重新查询新提交记录
git reflog
回滚
# 1.查询出commitId
git log -pretty=oneline
# 2.回滚指定版本的commitId
git reset --hard commitId
# 3.强推保证本地和远程同步
git push -f
# 4.重新查询新提交记录
git reflog