interactive git rebase failed with “git-rebase-todo: No such file or directory”
git rebase -i HEAD~2
C:\GnuWin32\bin\grep.exe: /cygdrive/xxx/.git/rebase-merge/git-rebase-todo: No such file or directory Nothing to do
xxx is the project path)
git rebase branch_xxx is working.
I am sure no rebase is in progress previous(checking with
git rebase --abort and use clean project folder both)
have some one solved this ? I google it but wihtout useful tips.
2 Solutions collect form web for “interactive git rebase failed with “git-rebase-todo: No such file or directory””
My problem was due to my gitconfig missing the -w and -n flags:
[core] editor = sublime -w -n
From Code Project:
[The -w and -n arguments are] passed to Sublime Text, and essentially
tell it to run without loading any previously open windows (the –n
flag), and to wait until the user exits to pass execution back to the
calling process (the –w flag, for “wait”)
You should not be using Cygwin and GnuWin32 together. Delete / Uninstall all traces of GnuWin32 and try again.
Also I recommend
setting an editor
To respond to the comment, you should have no need for GnuWin32. As an example, even a base install of Cygwin contains
grep, and a newer version at that.