更新时间:2023-10-18 12:51:46
如果 Cygwin / Git error cygheap base mismatch detected 正在工作,一个很好的测试就是在简化的PATH中引用Git。
set G = c:\path\to\latest\git
set PATH =%G%\ bin;%G%\usr \ bin;%G%\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \System32\WindowsPowerShell\\\v1.0\
请务必在' G
' latest Git ,你可以在任何你想要的地方提取: PortableGit-2.16.2-64-bit.7z.exe $ c $然后,在该CMD会话中,尝试
git bash $ c>。 c $ c>再次。
git Bash cmd error is showing in my terminal when I opened it.
Please provide the necessary actions to solve it
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.