search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

[Git] 設定editor | Calos's Blog

有時候單 commit 修改幅度不小,或是需要做長一點的說明時,直接在 command line 打會有點不舒服

個人會習慣叫出 editor 來編輯

git commit -e

今天在新環境時剛好需要用到 commit -e,指令下去之後噴了兩行 error

[Calos.Calos-PC] git commit -e
error: cannot run vi: No such file or directory
error: There was a problem with the editor 'vi'.

core.editor 沒設定,在使用到需要利用 editor 進行的指令時就會出現這種錯誤

core.editor 設為 vim

git config --global core.editor vim

搞定



熱門推薦

本文由 caloskaoorg 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦