Writing a commit message with Atom Editor

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

I’ve done this in order to have atom as the editor, and git does indeed open atom when I do not add a commit message. My problem is that I don’t know what to do next? I’ve tried writing a message on the first line, saving, and then closing, but it doesn’t commit at all.

  • Is there a function/plugin for line-by-line staging in atom.io?
  • Atom git-plus difficulties
  • Hide hidden(dot) files in github atom editor
  • Is there a way to prevent accidental overwrite after git pull due to editor not updating automatically?
  • Atom exclude node_modules folder from search
  • Atom editor locking git
  • Importing git project into workspace without using egit
  • How do I squash two non-consecutive commits?
  • Github Authentication Failed - … GitHub does not provide shell access
  • git cherry confusion - doesn't work as described in doc
  • How to find which commits removed a line that contain a specific string?
  • Can't fetch from private repository with EGit
  • One Solution collect form web for “Writing a commit message with Atom Editor”

    Update March 2016: issue 11053 has been fixed by DamienG, because:

    Existing solution caused Command Prompt to exit and sleep command is not built in to Windows.
    New solution works by spawning powershell child process that passes it’s PID to atom and then waits indefinitely. When atom terminates that process the parent process continues.

    Instead of waiting for Atom 1.7, one can immediately replace the atom.cmd by this one.

    Update February 2016: issue 3074 just got closed with PR 9798:

    This has been fixed and should be out in Atom 1.6.0.

    Original answer (late 2014)

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

    See issue 3074

    atom --wait myfile.txt

    Immediately terminates, but does continue to open the file. Expected result is to wait until the file is closed in the editor.

    Git Baby is a git and github fan, let's start git clone.