you should use Gitlens vs code extension for this
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
.
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.