Git
從 qingwei personal wiki
常見錯誤
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