Issue:
When using any commands starting with git I get the following error. Happens specifically for Bash run in VSCode, but not elsewhere.
E.g.:
$ git
fatal: unable to access 'C:Users?MJSS/.config/git/config': Invalid argument
Guess:
My guess is that it has something to do with one of shellIntegration .sh or .zsh files for VSCode (e.g. shellIntegration-bash.sh). On my computer, they are stored in the following path:
“*C:Program FilesMicrosoft VS Coderesourcesappoutvsworkbenchcontribterminalbrowsermedia*”
Additional info:
- Run Windows
- Have reinstalled Git and GitBash
- Have reinstalled VSCode
- Works in GitBash outside of VSCode
- Works in Cmd Prompt in VSCode
- VSCode has a status message on the bash terminal (seen below):