将本地仓库代码回滚到commitId位置,并从远程拉取最新代码git reset —hard commitId && git pull 回滚到远程master最新的commit位置git reset —herd orgin/master && git pull