“Git”的版本间的差异
来自qingwei personal wiki
(创建页面,内容为“== 常见错误 == === git pull: unable to update local ref === <source>”) |
(→git pull: unable to update local ref) |
||
第1行: | 第1行: | ||
== 常见错误 == | == 常见错误 == | ||
− | === git pull: unable to update local ref === | + | === git pull/fetch: unable to update local ref === |
− | <source> | + | ==== 现象 ==== |
+ | <source lang="shell"> | ||
+ | [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) | ||
+ | </source> | ||
+ | ==== 删除文件 ==== | ||
+ | <source lang="shell"> | ||
+ | rm -rf .git/refs/remotes/origin/bugfix/haofan | ||
+ | </source> |
2017年12月19日 (二) 03:22的版本
常见错误
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