Reputation: 16691
Im using Vscode and Gitlens. I want to be able to do an interactive rebase. I have core.editor=code --wait
set. But when I try and run a rebase I get the text-based editor instead, like so:
Any ideas?
Upvotes: 12
Views: 14992
Reputation: 1
in bash type command:
git config --global sequence.editor "code --wait --reuse-window"
then CTRL + SHIFT + P and type "PATH" and pick: "Shell Command: Install 'code' command in PATH"
Here you go
Upvotes: 0
Reputation: 1101
This worked for me. just execute the following command on your terminal
git config --global sequence.editor "code --wait --reuse-window"
Now execute the following command on VS Code Terminal to get GitLens Interactive editor.
git rebase -i <branch_name>
Upvotes: 14
Reputation: 5492
Please check if the interactive rebase editor option is checked from within the GitLens settings in VS Code:
Ctrl + Shift + P > GitLens: Open Settings
You should then be able to invoke the interactive rebase editor from both the VS Code command palette, or from the terminal as follows:
git -c sequence.editor="code --wait --reuse-window" rebase --interactive <base>
If you're on the VS Code Insiders edition, replace code
in the above with code-insiders
.
Upvotes: 17