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 "*"

 

 

留言

這個網誌中的熱門文章

ORA-12514: TNS: 監聽器目前不知道連線描述區中要求的服務

Oracle 例外控制(Exception Control)

Oracle 工作排程 DBMS_JOB 筆記