Administrator@USER-OICCFHHHH MINGW64 /c/gits/my_tuiyide/cent-vue (master)
$ git push --set-upstream origin master
Counting objects: 8, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 785 bytes | 0 bytes/s, done.
Total 8 (delta 6), reused 0 (delta 0)
To http://10.0.0.4:50080/tuiyide/web/cent-vue.git
51d809e..be97ad2 master -> master
Branch master set up to track remote branch master from origin.
error: update_ref failed for ref 'refs/remotes/origin/master': cannot lock ref ' refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/ma ster': reference broken
第一步,删除掉 .git 目录下 master 文件
rm .git/refs/remotes/origin/master
第二步,使用 git fetch 去抓取远程仓库最新代码
git fetch
最后一步,使用 git merge origin/master 把远程分支内容合并到本地 master 分支下
git merge origin/master