GITBash CMD Error while opening

后端 未结 1 1561
Happy的楠姐
Happy的楠姐 2020-12-06 15:41

git Bash cmd error is showing in my terminal when I opened it.
Please provide the necessary actions to solve it

1条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 16:20

    If none of the suggestions in "Cygwin/Git error cygheap base mismatch detected" are working, a good test is to reference Git in a simplified PATH.

    set G=c:\path\to\latest\git
    set PATH=%G%\bin;%G%\usr\bin;%G%\mingw64\bin
    set PATH=%PATH%;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
    

    Make sure to reference in 'G' the latest Git you can extract anywhere you want: PortableGit-2.16.2-64-bit.7z.exe, assuming you are on a Windows 64 bits.

    Then, in that CMD session, try git bash again.

    0 讨论(0)
提交回复
热议问题