It seems that main branch is far away form main
fatal: cannot switch branch while rebasing
Consider "git rebase --quit" or "git worktree add".
It shows
Next commands to do (2 remaining commands):
pick d51f32027a0 Correct last code block not annotated
pick 7380fa4a8e7 changed all @doc issues
(use "git rebase --edit-todo" to view and edit)
git rebase –edit-todo
opens vim file
pick d51f32027a0 Correct last code block not annotated
pick 7380fa4a8e7 changed all @doc issues
git rebase --continue
#
# Commands:
# p, pick <commit> = use commit
# r, reword <commit> = use commit, but edit the commit message
# e, edit <commit> = use commit, but stop for amending
# s, squash <commit> = use commit, but meld into previous commit
# f, fixup [-C | -c] <commit> = like "squash" but keep only the previous
# commit's log message, unless -C is used, in which case
# keep only this commit's message; -c is same as -C but
# opens the editor
how to continue with the rebase?
git rebase --continue
error: invalid command 'git'
error: invalid line 3: git rebase --continue
error: please fix this using 'git rebase --edit-todo'.
What should I do?
9