3C科技 娛樂遊戲 美食旅遊 時尚美妝 親子育兒 生活休閒 金融理財 健康運動 寰宇綜合

Zi 字媒體

2017-07-25T20:27:27+00:00
加入好友
有時候單 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提供 原文連結

寫了 5860316篇文章,獲得 23313次喜歡
精彩推薦