Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trouble in using git commit -m

Tags:

git

When running git commit -m "Commit message" It returns the error message:

fatal: empty ident name (for ((null))) not allowed

and then asks for the account's default identity.

See the command prompt screenshot for more details.

like image 325
Palak Avatar asked Jun 27 '16 19:06

Palak


2 Answers

Just as the text in the screenshot says, you need to tell git who are you committing the code as, by using e.g.:

git config --global user.name "John Smith"
git config --global user.email "[email protected]"
like image 181
Krzysztof Krasoń Avatar answered Oct 08 '22 14:10

Krzysztof Krasoń


You need to set your user name and email address, which sets your identity before you can commit anything. Please follow the instructions here.

like image 23
toro Avatar answered Oct 08 '22 12:10

toro