我只是試圖做一個git pull
,我已經做了數百次。由於某種原因,這次它在控制檯上向我顯示這個Git - 提交編輯器,但沒有編輯器打開
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
然而,沒有東西會打開我輸入此提交消息。我相信像Vim或其他什麼應該打開(我從來沒有使用過),但我在試圖拉代碼的僵局。
我看到這在我的git config
core.editor=vi
我能做些什麼?我可以用其他方式輸入提交信息嗎?我正在使用Mac OSX Lion。
您是否試圖拉到您提交提交的分支上?你真的想這麼做嗎?它看起來像你的問題,像'vi' *做*開始。 – 2013-03-16 00:34:52
如果您不理解vi,請將您的編輯器設置爲BBEdit或免費軟件TextWrangler。 git工作得很好。 – matt 2013-03-16 00:35:33
我不知道如何使用vi。我有TextWrangler。如果TextWrangler存在於Mac OSX的Applications文件夾中,我該如何將其設置爲我的編輯器? – 2013-03-16 00:45:05