Aborting commit due to empty commit message

后端 未结 20 2043
[愿得一人]
[愿得一人] 2020-12-04 09:45

As a newbie git user, when I try to commit my work with

git commit -a -v

and I enter a commit message in my editor, I close the file, and g

20条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 09:58

    I have configured my atom editor as

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

    but when I did

    git commit
    

    when atom was already launched, it opened a new tab for adding comments, but git wasn't waiting for me to save file and throwed "Aborting" message instantly. When I closed atom and tried to commit one more time, git launched atom and waited for comments to be added.

提交回复
热议问题