git 更新失败
git pull 失败。提示:error: cannot lock ref 'xxxxxxxx': 'xxxxxxxxx/yyyy' exists; cannot create 'xxxxxxxx'这是因为有些人需要建立某个“父路径”,但是其“子路径”已经存在。子路径存在说明父路径已经存在,不能重复创建。使用下面的方法移除全部路径信息重新与仓库同步。git gc --prune=nowgit
·
git pull 失败。
提示:
error: cannot lock ref 'xxxxxxxx': 'xxxxxxxxx/yyyy' exists; cannot create 'xxxxxxxx'
这是因为有些人需要建立某个“父路径”,但是其“子路径”已经存在。
子路径存在说明父路径已经存在,不能重复创建。
使用下面的方法移除全部路径信息重新与仓库同步。
git gc --prune=now
git remote prune origin
更多推荐
已为社区贡献3条内容
所有评论(0)