Typo in commit , git commit --amend , Learn Git by Building an SQL Reference Object - Build an SQL Reference Object


I made a typo when using git commit -m "message".
Because of the typo, I couldn’t pass the test. However, I later found on the Internet that git commit --amend might help, so I tried it.

Using git commit --amend brought me to GNU nano 6.2, but I’m unsure how to save and exit the changes.

Please help

Just figured out, it is

Ctrl + X
then press ENTER.

I wasn’t aware about that ENTER, so I got stuck :melting_face: