2016-06-08 69 views
1

我有一個原子編輯器的問題。我把原子由命令core.editor:git commit命令與core.editor等於原子

git config --global core.editor atom 

但是當我試圖通過

git commit 

命令將更改提交到Git的一個倉庫,我希望我的選擇的編輯器將打開並提示提交信息,但打開它之前之後的git它拋出一個錯誤

Aborting commit due to empty commit message. 

它打開編輯器,當我進入提交信息並退出編輯器沒有提交時,我知道我可以使用命令

git commit -m '<message>' 

但我想知道爲什麼會出現此錯誤以及如何解決它。

回答

3

嘗試:

git config --global core.editor "atom --wait" 

原子--wait標誌等待窗口返回前關閉。

+0

謝謝它的工作 –