![](/img/trans.png)
[英]Git commit locally not working, stalling and hanging to blinking cursor in bash
[英]How to stop git hanging on commit in cygwin bash
每當我打字
git commit
我的cygwin bash終端看起來好像在等待我在另一個進程中完成編輯消息,但沒有編輯器啟動。
我收到一個錯誤
"C:/Program (x86)/Git/bin/sh.exe": line 0: igncr: invalid option name
我假設其中一個環境變量我必須嘗試使cygwin可用。
如果我使用
git commit -m "Some Message Here"
一切正常
當我將全局編輯器設置為記事本時,git無法找到我的編輯器導致掛起
git config --global core.editor "notepad"
一切正常。
通過將全局編輯器設置為vim的windows位置
git config --global core.editor "c:/APPS/CYGWIN/bin/vim.exe"
我能夠運行vim然后我可以看到還有一個鎖文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.