Git problem with interactive rebase

This is basically what happens:

> git rebase -i HEAD~3
Successfully rebased and updated refs/heads/master.

Pops open my text editor then immediately “completes” the rebase before I even have the chance to do anything. Anyone know what might be causing this?

I’m using msysgit on Windows 7: git version 1.7.3.1.msysgit.0

  • Trying to fix line-endings with git filter-branch, but having no luck
  • git, msysgit, accents, utf-8, the definitive answers
  • Git clone using ssh - can't find repository
  • Git push/pull paths not working to windows origin running msysgit + cygwin sshd
  • Store files with Japanese characters in file name in msysgit
  • Git GUI crashes every time it opens a repository
  • git pull is not working on msysgit client?
  • How to Undo “git add -A” in uninitialized local empty repository (while keeping the files on my computer)?
  • 3 Solutions collect form web for “Git problem with interactive rebase”

    This is probably because Git expects that the text editor will stop and wait until you have finished editing before continuing. Your text editor could start up in such a way that it appears that it immediately finished as far as Git can see.

    You could try setting the EDITOR environment variable to point to a batch file that does something like:

    start /wait my_editor %*
    

    (but this is just a guess and I’m not in a situation to test it right now).

    Solved, related to the editor variable in git-config:

    How do I use Notepad++ (or other) with msysgit?

    I use Atom – and was getting the same problem.

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

    …fixed it for me straight away.

    More info about setting up different code editors can be found here:
    https://help.github.com/articles/associating-text-editors-with-git/

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