branch

Git|记一次误提交的解决办法

在不应该开发的分支,进行了开发,并且进行了commit和push. 回滚: git branch # error_branchgit branch new_branch_for_backup git reset --hard commit_id git push origin:error_branchgit checkout right_branch git merge n