Hey everyone, so I was able to change a commit message for commits that had not yet been pushed by using git commit --amend -m “new message text here.” Then I used git push --force to push it to GitHub. So far so good.
But now I want to change multiple commit message for files that have already been pushed to GitHub. According to help.github.com/articles/changing-a-commit-message/ the command to do this is:
git rebase -i HEAD~n
where n = the number of recent files whose commit message you want to amend. I want to change the last 3 pushed files so I used git rebase -i HEAD~3 but said “could not execute editor” (see screenshot below). It doesn’t look like I have vi or vim or whatever I need. And by the way I’m using R studio cloud.
Appreciate any help,