I've setup a Windows 10 machine with VSCode and needed to clone a repo so I installed the tooling (Git, NuGet, posh-git and the Environment Variable) using Powershell:
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git -y
#devlog('Install NuGet, Git, SSH Keys directory and set region')
$newPath = "$($env:PATH)C:\Program Files\Git\bin;"
[Environment]::SetEnvironmentVariable( 'PATH', $newPath, "Machine")
$env:PATH = $newPath
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
install-module posh-git -force
Now in VSCode when I try a Git Clone I get an error:
Command 'git.clone' not found
I have git installed as per the Powershell code. I have typed git clone with the space not the dot and same problem.
Also I should note this code worked perfectly about a month ago, so what could the problem be?


