Search code examples
gitvimmacviminteractiverebase

git rebase -i presents an empty MacVim file


I'm trying to rebase a commit. However, any time I run git rebase -i f83eff3ffc8, for example, a MacVim window opens, that's empty (there is no information in the file). Then once I write and close the file (even though it's empty), I get a Successfully rebased and updated refs/heads/clicktocall-hotfix message.

The file name is .git/rebase-merge/git-rebase-todo. I also tried running it with sudo but this didn't make a difference.

What could be the problem? I've never successfully completed a rebase.


Solution

  • I was using Macvim and needed to run mvim with the -f option, as documented here: GIT_EDITOR not working with macvim