git [batあり]git がgit config –global –add safe.directoryしろと言ってきたときのbat
やりたいことgitのリポジトリをCloneした直後などにgitから以下のメッセージが表示されPullなどができないことがあります。Could not open repository.libgit2 returned: repository path 'X:\XXXX' is not owned by current userTo add an exception for this directory call:git config --global --add safe.directory 'X:\XXXX'表示されたコマンドを少し変えて実行すればいいのですが、めんどくさいしルールもすぐ忘れる...