Git commit錯誤, Failed to get unRev file listfatal: unsafe repository
Git commit錯誤, Failed to get unRev file listfatal: unsafe repository
錯誤訊息:
Failed to get UnRev file listfatal: unsafe repository ( D./****/****' is owned by someonelse)
To add an exception for this directory, call:
git config --global --add safe.directoryD:/****/****
Set the enwironment variableGIT TEST DEBUG UNSAFE DIRECTORIES=true and runagain for more information.
可能原因:
Git版本更新後, 增加新的資料夾安全限制, 造成進行Git操作找不到git文件
解決方法:
指定資料夾
git config --global --add safe.directory D:/****/****
全域設定
git config --global --add safe.directory "*"
留言
張貼留言