执行后 git add . 、git commit 也设置了远端仓库地址,最后推送远端仓库报错,如下:
云端仓库已存在内容,当前分支的最新提交落后于远程仓库的提交历史。
强制推送,使用 --force
--force
git push -force -u origin "master"