WSLでgit cloneエラー
Windows 11のWSLでgit cloneしようとしたら次のエラーが出た code:Bash
$ git clone git@github.com:uchan-nos/<repo>.git
Cloning into '<repo>'...
error: chmod on /mnt/c/……/<repo>/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
ポイントは /mnt/c/ 以下にgit cloneしようとしたこと
ここはWindowsファイルシステムであり、デフォルトではメタデータ無効でマウントされているらしい
/etc/wsl.conf
code:Text
options = "metadata"