git pull git push 报spawn ssh错误,vscode更换默认终端
今天发现vscode git插件同步代码报错 error: cannot spawn ssh: No such file or directory
刚开始以为是ssh安装有问题,测试ssh命令没问题,这个错误中的ssh其实是指git安装包中的ssh.exe, 给GIT_SSH设置环境变量后问题解决
我的git安装于 D:\tools\Git
设置环境如下: GIT_SSH=D:\tools\Git\usr\bin\ssh.exe
另外,我用的是vscode,默认的终端窗口是cmd命令窗口,如果想换成git bash的窗口可以按照如下设置:
1.vscode中找到设置,搜索cmd,点击在settings.js中编辑
2.加入如下设置 "terminal.integrated.shell.windows": "D:\\tools\\Git\\bin\\bash.exe",
其中 D:\\tools\\Git\\bin\\bash.exe为我的本地安装目录
3,更换后的终端效果如下:
漂亮多了
git pull git push 报spawn ssh错误,vscode更换默认终端相关推荐
- git每次git pull,git push时提示enter passphrase for key ‘~/.ssh/id_rsa‘需要输入密码
git每次git pull,git push时提示enter passphrase for key '~/.ssh/id_rsa'需要输入密码解决办法: 在项目文件夹内打开gitbash 输入以下命令 ...
- git pull git push的详细使用
git pull & git push的详细使用 git pull 常用 pull意为拉,这里引申为拉取代码. 在Git命令中使用pull,会将你的远程代码拉取到本地并进行合并 格式: git ...
- git pull和git pull origin master报如下警告Pulling without specifying how to reconcile divergent branches
git pull和git pull origin master报如下警告 hint: Pulling without specifying how to reconcile divergent bra ...
- git pull 的时候报错:error: insufficient permission for adding an object to repository database .git/objec
** 登录服务器,执行git pull的时候报错:** remote: Counting objects: 88, done. remote: Compressing objects: 100% (8 ...
- git pull和push整理和归纳
目录 各个模块概念 工作区 版本库 暂存区 远程仓库 pull和push流程相关的命令 暂存区相关 版本库相关 远程仓库相关 利用远程仓库协作开发 各个模块概念 我的理解: Git是版本管理工具,它主 ...
- Git pull和push操作
add commit push命令集合 https://blog.csdn.net/qq_37577660/article/details/78565899?depth_1-utm_source=di ...
- git pull git add git commit git branch git更新代码git提交git分支管理
常用git命令整理 1. 拉取最新代码 2. 提交代码 3. 分支管理 3.1 查看所有分支(包括本地分支和远程分支) 3.2 查看远程所有分支 3.3 追踪远程分支 4. 强制用远程代码覆盖本地代码 ...
- ajax提示弹出dev,windows git pull或者push代码时弹出安全框解决办法
fMRI: spatial smoothing Source: Brain voyager support Theoretical Background Spatial smoothing means ...
- 微信小程序:图片404错误,更换默认图片
app.js //远程图片no found情况下指引 errImgFun:function (ev, that){console.log("onImageError", ev);v ...
- git pull 报错:The following untracked working tree files would be overwritten by merge
场景 使用 git pull 命令更新报错 Updating d652d1c..fa05549 error: The following untracked working tree files wo ...
最新文章
- linux中关闭报警音
- OpenCV中向量是可以转化为MAT类型的~
- 干货 | 解决分布式场景下数据一致性问题,我有办法!
- Java使用Redis实现分布式锁来防止重复提交问题
- 在给Ext2 Grid设置了autoHeight属性后,如何显示滚动条
- Remove Duplicates from Sorted Array II
- seajs的模块化开发--实践笔记
- 五周第三次课(4月20日)shell介绍、命令历史、命令补全和别名、通配符 、输入输出重定向...
- 冰点下载器手机版apk_冰点文库下载器app下载_冰点文库下载器手机安卓版软件下载v1.0.3...
- 用python结合matplotlib包,绘制带有误差棒和数值的柱状图,每根柱子配色不同
- 北京环球影城游玩攻略
- 适合新手的python练习(9)
- ACM-ICPC 2018 北京赛区网络预赛 B Tomb Raider(二进制枚举暴力)
- HD1096 between “ 之间” 的含义
- 实战 | 电信客户流失分析与预测
- Transformer:让ChatGPT站在肩膀上的巨人?
- python删除空值的行_python删除列为空的行的实现方法
- SpringBoot(一):什么是SpringBoot?
- java人名识别_HanLP中人名识别分析
- Fastboot 命令报错分析篇