windows11から rhel7 on virtualbox に gitのリポジトリを作成し、 tortoisegit for win を使用して、このリポジトリを操作していますが、 以下のようなエラーが発生するようになりました。
fatal: unsafe repository
('//192.168.56.108/end0tknr/dev/SpringVuePy' is owned by someone else)
To add an exeption for this directory, call:
git config --global --add safe.directory
'%(prefix)///192.168.56.108/end0tknr/dev/SpringVuePy'
Set the environment variable
GIT_TEST_DEBUG_UNSAGE_DIRECTORIES=true and run again
for more information.
どうやら、windows側のgitをバージョンアップしたことがきっかけらしい。
なので、上記のメッセージに記載されていた以下を windowsのpower shellで実行し、解消
PS> git config --global --add safe.directory '%(prefix)///192.168.56.108/end0tknr/dev/SpringVuePy'