Using atom as a git editor fails to wait for commit message, why?

后端 未结 1 1317
臣服心动
臣服心动 2021-01-19 03:01

I have configured my git editor both by:

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

or

git config --global core.edito         


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 03:19

    I don't have atom installed, but I did a similar thing for VS Code. Have you tried putting the command and the switch together inside quotes?

    editor = 'atom -w'

    I've been doing that with the Bash EDITOR shell variable, since my default editor changes depending which OS I'm on at the time, whether I'm using SSH or not; so setting it inside the Git config for a project is not a solution for me. But it may be for you.

    So please try that and tell us what happens.

    0 讨论(0)
提交回复
热议问题