git 回滚到某次commit:
git log //找到需要回滚的commit-id
git reset –hard commit-id //将本地commit-id之后提交的commit都去除
//$ git add .
//$ git commit -m “rollback”
git push -f origin master(branch-name) //强制push
git log //找到需要回滚的commit-id
git reset –hard commit-id //将本地commit-id之后提交的commit都去除
//$ git add .
//$ git commit -m “rollback”
git push -f origin master(branch-name) //强制push