wasapl on 20 Mar, 2018 09:32 PM
There is no USERPROFILE variable in ubuntu that is why it tries to write file in the root of FS. Please use Home variable instead which is set both in linux and windows (Note, it does not have trailing slash). I suggest to use Join-Path for multiplatform scripts when you need to construct path to file:
Join-Path $Home ".git-credentials"
In ubuntu image you have to configure git to use .git-credentials file as credential Storage: