git pull 失败。

提示:

error: cannot lock ref 'xxxxxxxx': 'xxxxxxxxx/yyyy' exists; cannot create 'xxxxxxxx'

这是因为有些人需要建立某个“父路径”,但是其“子路径”已经存在。
子路径存在说明父路径已经存在,不能重复创建。

使用下面的方法移除全部路径信息重新与仓库同步。

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

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐