Search code examples
gitcommit

How to make commit in git


I am new in git, but very want to learn this system. I typed command:

git commit -am "I`m worried"

and pressed Enter. But this was the result:

$ git commit -am "I`m worried"
> 

What is it and how to exit and do my commit?


Solution

  • The issue is with what appears to be a backtick character in the commit message ("I`m worried").

    The easiest way to fix this is to ctrl + c out of the dialog and use a new commit message. You can do something similar by using single quotes inside of double quotes instead. If you really want to use a backtick you can escape it in your message "I\`m worried"