![](/img/trans.png)
[英]C++ and Windows - how to overwrite exe file of the running program?
[英]How to fix git commit on windows: “Waiting … to close … file: … vim.exe: C:/Program: No such file or directory”
有誰知道如何解決這個錯誤? 幾天前在同一個存儲庫中一切正常。 現在我正在嘗試提交新的更改,我收到了這個我無法修復的錯誤。 據我所知,除了周二補丁中的一些 Windows 更新外,什么都沒有改變。
$ git commit
hint: Waiting for your editor to close the file... C:/Program Files/Git/usr/bin/vim.exe: C:/Program: No such file or directory
error: There was a problem with the editor 'C:/Program Files/Git/usr/bin/vim.exe'.
Please supply the message using either -m or -F option.
$ git config --global core.editor
C:/Program Files/Git/usr/bin/vim.exe
我已將 windows 的 git 升級到最新版本,但這並沒有幫助。 該錯誤沒有任何意義; vim 運行良好。 It says that git is waiting for vim to close "C:/Program", but that sounds like git passed vim a full path but forgot to escape the space. 怎么會這樣?
您需要修復.gitconfig
中的引號:
git config --global core.editor "'C:/Program Files/Git/usr/bin/vim.exe'"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.