说明之前的git没有卸载干净
方法一:Windows应用-应用和功能里找到git,点击卸载即可
方法二:win+r 输入regedit,进入注册表编辑器,根据以下路径找到Git_is1:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
如果该路径下没有,换个路径继续找(我就是没有找到的那一类)
路径:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Computer\HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Uninstall
Computer\HKEY_USERS\S....\Software\Microsoft\Windows\CurrentVersion\Uninstall
找到Git_is1之后,删除就好了。继续安装就不会出问题了。