美文网首页
git pull : unable to update loca

git pull : unable to update loca

作者: Axiba | 来源:发表于2018-02-28 15:11 被阅读890次

拉代码报了更新锁定:

\error: cannot lock ref 'refs/remotes/origin/v1.0.0': is at 3cdf2617e77e93521f3fed038b4a161543131cfa but expected 0fc6b07bd33bc6c66c259cc12e87d14b5c4abeaf
From ssh://baidu.com/baiduproject
 ! 0fc6b07b...631e017e v1.0.0 -> origin/v1.0.0  (unable to update local ref)

解决办法:

git gc --prune=now
git remote prune origin
git pull

相关文章

网友评论

      本文标题:git pull : unable to update loca

      本文链接:https://www.haomeiwen.com/subject/iuzbxftx.html