Home:ALL Converter>Editor automatically closes when running interactive rebase

Editor automatically closes when running interactive rebase

Ask Time:2021-09-22T05:37:54         Author:user-is-here

Json Formatter

I'm trying to squash 40+ commits together in a branch I'm working on using interactive rebase. My chosen editor in git is vscode. When I run the command:

git rebase -i <commit>

I briefly see the file to edit appear in vscode, but then it automatically closes. It renames the file from "git-rebase-todo" to "git-rebase-todo (deleted from disk)" and then closes the tab.

Why is this happening? What are my options?

Author:user-is-here,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69275828/editor-automatically-closes-when-running-interactive-rebase
yy