I tried using the command git rebase -i HEAD~2
but on trial it gives a strange message on the terminal which I don't want to be getting and I see nothing on my code editor which has been already configured to VS code as I can merge, add commit, etc.
But unfortunately the message it gives me on my terminal;
hint: Waiting for editor to close the file... code --wait : code: command not found
error: There was a problem with the editor 'code --wait'
Nothing also appears on my editor to show the commits which I wish to pick, reword, edit, fixup, and possibly even drop.