Eh… interesting… Never seen that one before. Try a few things:
- In VSCode, go to
File -> Preferences -> Settingsand search for “git path”. There will be a “Edit in settings.json” button which takes you to the configuration file. Put the direct path to yourgit.exeexecutable in there (and remember to escape a backslash with a backslash, as inC:\\Program Files\\git\\cmd\\git.exe, for example) - restart VSCode and see if
gitis now being recognized in the PIO terminal - if not, uninstall the PlatformIO VSCode extension in the extension side, reinstall it and restart VSCode – does it work now?