Reputation: 2642
I am following the official guide of GIT, and actually I am at 2.2.6 paragraph " Committing Your Changes" Previously, at section 1.5.1 "Identity" when asked to enter a command like
git config --global user.name "John Doe"
I missed the --global option because I don't need it. Now everytime I do a git commit, I obtain
$git commit
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
but I do not want to enter a --global option, does exist another way?
Upvotes: 16
Views: 63393
Reputation: 17
This is Solving
1- git init
2- git config user.name "AccountName"
3- git config user.email "yourGamil"
4- git add *
5- git commit -m "WriteCommit"
6- git push origin master
Upvotes: 1
Reputation: 11920
If you just want to set it for that repository, run:
git config user.email "[email protected]"
git config user.name "Your Name"
Upvotes: 25
Reputation: 103
Just type the same name that you have in your GitHub account, the same the same letters and character.
Upvotes: 6