无限星辰工作室-客户无限互联网动力之源

标题: tortoisegit 执行更新命令时提示Could not get HEAD hash 解决办法 [打印本页]

作者: crx349    时间: 2023-5-4 23:04
标题: tortoisegit 执行更新命令时提示Could not get HEAD hash 解决办法
故障:
使用tortoisegit 的 git提交master时出现如下错误

  1. Could not get HEAD hash.
  2. libgit2 returned: repository path '*/' is not ownedby current user.
  3. To add an exception for this directory, call:git config --global --add safedirectory '*
复制代码

(, 下载次数: 378)

解决办法:
win:使用cmd访问项目目录执行
  1. git config --global --add safe.directory "*"
复制代码

(, 下载次数: 381)

故障解决





欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4