Aga*_*zyk 1 git visual-studio-code
我无法将Visual Studio Code设置为git的核心编辑器。当我尝试执行git commit时,我只会看到有关编辑器存在问题的信息。
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app
MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy
MacBook-Air-Agata:nowy agataskrzypczyk$ git commit
hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
Run Code Online (Sandbox Code Playgroud)
我建议您将Visual Studio Code选项设置为从命令行启动。为此,请按照此处文档中的说明进行操作。
然后尝试使用以下命令设置核心编辑器:
git config --global core.editor "code --wait"
Run Code Online (Sandbox Code Playgroud)
然后我认为您不会遇到任何问题git commit。
小智 5
git config --global core.editor "code"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
986 次 |
| 最近记录: |