Git 拉取项目失败,错误:Could not get HEAD hash. libgit2 returned: repository path '***' is not owned bu current user.
问题现象根据错误提示 To add an exception for this directory, call: git config --global --add safe.directory '***' 可知,Git 提示当前项目的目录被 Git 认为是不安全的,需要使用 git config --global --add safe.directory 命令将项目目录添加到 Git 的安全目录