原文:error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken...

之前在自己的项目中添加了一个分支,然后做了一些操作,比如同步本地的分支情况到远程仓库中,然后在远程仓库中完成分支合并,以及 Pull request 等等操作,后来,在本地仓库中进行 git fetch 命令操作的时候,出现了一个错误,即 error: cannot lock ref refs remotes origin master : unable to resolve reference ...

2018-09-08 20:00 0 9665 推荐指数:

查看详情

解决git pull拉取更新代码失败,unable to resolve referencerefs/remotes/origin/xxx分支名’: reference broken问题

摘要   近期在合并拉取代码,在合并分支代码时不知做了什么操作,使用 git pull 命令更新本地代码失败,显示本地分支参考关联损坏失效。具体的错误提示如下图所示: 解决方案   1、根据错误提示,找到本地 .git 中损坏的 ‘refs/remotes/origin/xxx ...

Sun May 31 01:47:00 CST 2020 1 1699
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM