Open4

Setting GCM for WSL

yotto428yotto428

global gitconfig

Win

[includeIf "gitdir/i:~/private/"]
        path = ~/private/.gitconfig-private
yotto428yotto428

system gitconfig

Win

[credential]
        helper = manager

WSL

[credential]
        helper = \"/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe\"
yotto428yotto428

includeIf gitconfig

Win

[user]
        name = xxxx
        email = xxxx@xxxx
[credential]
        namespace = private%

WSL

[user]
        name = xxxx
        email = xxxx@xxxx
[credential]
        namespace = private%
yotto428yotto428

~/private git init

Win

$ cd /mnt/c/Users/xxxx/private
$ git init

WSL

$ cd ~/private
$ git init