'chcp' is not recognized as an internal or external command, operable program or batch file. on a Windows PC

See if your PATH environment variable is setup properly. Any system should have atleast the below on PATH

;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

Add the above if not there.

Once added, open a new cmd / bash and try:

where chcp

It should give the path.

Then try with the git init again

Edit

If you need help to find where to add it enter image description here


You have broken PATH (check with SET PATH), chcp is internal Windows-command, which can be found in $Windows\system32\ dir


I copied the file from windows/system32 into the Vmware CLI/bin directory which resolved it for me.