在拉取远端新代码时报错 如下:

hint: Waiting for your editor to close the file... "D:\vs code\Microsoft VS Code\_\Code.exe" --wait: D:\vs code\Microsoft VS Code\_\Code.exe: No such file or directory
error: There was a problem with the editor '"D:\vs code\Microsoft VS Code\_\Code.exe" --wait'.
Not committing merge; use 'git commit' to complete the merge.

解决方法如下:

执行: git config --global core.editor 'code --wait'

知识补充:

拉取远端主分支最新代码时,步骤如下:

跳转到master分支

git checkout master

接着执行: 

git fetch
git merge

跳转回自己的分支 例如div分支

git checkout dev
git merge master

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐