先将新旧分支都检出到本地 查看分支 git branch -al 如果不在旧分支则切换分支 git checkout 旧分支 git reset --hard 新分支 git push -f 推送到远端