VS code安装GitLens提示GitLenswas unable to find Git. Please make sure Git is installed...报错

VS code真香系列


VS code 安装Git源代码管理插件 GitLens提示如下报错信息,搞了半天终于OK了,分享给大家~

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ttAdCxqB-1612252555126)(416FD28E7C5B4FBFA657E99947C3D92A)]

GitLens was unable to find Git. Please make sure Git is installed. Also ensure that Git is either in the PATH, or that 'git.path' is pointed to its installed location.
解决:
  • 需要先安装windows下的Git, 修改VS code的Git 路径即可
//git bash 查询git.exe路径
where git

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值