I was working on git and found that the name under my old commit message was wrong. It takes a lot of effort to change it using git reset head~1. I haven't pushed it yet. I tried to use git commit --amend, but when I go to the commit and enter this command, an editing window appears, but I don't know how to save it. Please help.
I checked out the git commit I wanted to change. Then I typed git commit --amend. The editing window came up, so I tried to delete the original git name and save it, but I don't know how to save it.
git commit --amend -m 'the message I really want'git rebase -i the-commit-i-want-to-modify~(make sure to include the pigtail), when you get the list of commits to work on, the commit you want to modify should be the first one, change the action frompicktoreword, save and exit.