Recording a commit message using the Atom editor

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

I did this to have the atom as an editor, and git really opens the atom when I don't add a commit message. My problem is that I do not know what to do next? I tried to write a message in the first line, save, and then close, but it does not commit at all.

+6
source share
1 answer

March 2016 update: Problem 11053 was fixed by DamienG because:

The existing solution, caused by calling the command line to exit and hibernate, is not built into Windows.
The new solution works by creating a powershell child process that passes its PID to the atom and then waits indefinitely. When an atom completes this process, the parent process continues.

Instead of waiting for Atom 1.7, you can immediately replace atom.cmd with this one .


February 2016 Update: Issue 3074 just closed with PR 9798 :

This is fixed and should be in Atom 1.6.0 .


Original answer (end of 2014)

The --wait option --wait not work yet (Q4 2014, v0.141.0 +) on Windows.

See issue 3074

 atom --wait myfile.txt 

It exits immediately, but continues to open the file. The expected result is to wait until the file is closed in the editor.

+4
source

Source: https://habr.com/ru/post/977688/


All Articles