git pull 失败。
提示:
error: cannot lock ref 'xxxxxxxx': 'xxxxxxxxx/yyyy' exists; cannot create 'xxxxxxxx'
这是因为有些人需要建立某个“父路径”,但是其“子路径”已经存在。
子路径存在说明父路径已经存在,不能重复创建。
使用下面的方法移除全部路径信息重新与仓库同步。
git gc --prune=now
git remote prune origin
git pull 失败。
提示:
error: cannot lock ref 'xxxxxxxx': 'xxxxxxxxx/yyyy' exists; cannot create 'xxxxxxxx'
这是因为有些人需要建立某个“父路径”,但是其“子路径”已经存在。
子路径存在说明父路径已经存在,不能重复创建。
使用下面的方法移除全部路径信息重新与仓库同步。
git gc --prune=now
git remote prune origin