一次性commit好多文件,push上去之后,发现工程不可用,只能回滚,上网搜索回滚办法,下边这个是自己亲试的,特别好使: 操作步骤: 1.git checkout the_branch 2.git pull 3.git branch the_branch_backup //备份一下这个分支当前的情况 4.git reset --hard the_commit_id //把the_branch本地回滚到the_commit_id 5.git push origin :the_branch //删…