我是 git 新手,我能夠在我的第一個存盤庫中成功使用它,但我剛剛添加了另一個,現在我無法提交到任何一個存盤庫。當我進行提交時,我收到此訊息:
throg@throg-VirtualBox:~/repos/git_test$ git commit
hint: Waiting for your editor to close the file... error: cannot run code--wait: No such file or directory
error: unable to start editor 'code--wait'
Please supply the message using either -am or -F option.
我認為這可能是 Visual Studio Code 的問題,但我在使用它時收到了相同的訊息。
uj5u.com熱心網友回復:
運行命令
git config --show-origin core.editor
它將列印組態檔路徑和 core.editor 的值。
看來您設定了錯誤的值code--wait。應該是code --wait。如果是這種情況,請打開組態檔并編輯錯誤的值,保存并退出。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/441107.html
標籤:混帐
上一篇:有沒有辦法臨時變基功能分支?
下一篇:使用單獨的字典更改字典鍵?
