Git

来自qingwei personal wiki
Qingwei讨论 | 贡献2017年12月19日 (二) 03:22的版本 git pull: unable to update local ref
跳转至: 导航搜索

常见错误

git pull/fetch: unable to update local ref

现象

[qingwyan@crdc-sdn-ucs2 rpd-service-manager]$ git fetch

error: there are still refs under 'refs/remotes/origin/bugfix/haofan'
From ssh://bitbucket-eng-sjc1.cisco.com:7999/cmtsorch/rpd-service-manager
 ! [new branch]      bugfix/haofan -> origin/bugfix/haofan  (unable to update local ref)

删除文件

rm -rf .git/refs/remotes/origin/bugfix/haofan