解决 git 进行 rebase 操作时报错:hint: Waiting for your editor to close the file...
问题:在 git bash 中使用 git rebase -i 时提示:hint: Waiting for your editor to close the file... "C:/Program Files (x86)/GitExtensions/GitExtensions.exe"
原因:这是由于前段时间我卸载了 GitExtensions 工具,导致 git 默认的编辑器还是用的 GitExtensions ,当需要进行编辑的时候找不到这个工具,所以报错。
解决办法:在 git bash 中使用以下命令修改默认编辑器为 vscode
git config --global core.editor 'code'

浙公网安备 33010602011771号