故障:
使用tortoisegit 的 git提交master时出现如下错误
- Could not get HEAD hash.
- libgit2 returned: repository path '*/' is not ownedby current user.
- To add an exception for this directory, call:git config --global --add safedirectory '*
复制代码
解决办法:
win:使用cmd访问项目目录执行
- git config --global --add safe.directory "*"
复制代码
故障解决
|