你是否遇到过类似的错误提示,大概意思就是在存储库中检测到可疑的所有权。
fatal: detected dubious ownership in repository at ‘D:/yeluai/github/gitai’
‘D:/yeluai/github/gitai’ is on a file system that does not record ownership
To add an exception for this directory, call:
解决方法,根据提示命令行。
git config --global --add safe.directory D:/yeluai/github/gitai
执行完后,可以正常查看分支了。