git reset 目标版本号 # 目标版本号通常啊是错误提交的前一个版本git loggit stashgit checkout # 切换分支# git log等手段确保下是否已进入到该分支git stash popgit commit # 重新提交