其实都在这里
https://docs.microsoft.com/en-us/windows/wsl/tutorials
记录一下自己重装会用到的

Git

git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe"

Node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash