1,git push origin develop:master -f就可以把本地的develop分支强制(-f)推送到远程master2,git checkout master // 切换到旧的分支git reset –hard develop // 将本地的旧分支 master 重置成 developgit push origin master –force // 再推送到远程仓库