Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git commit and user identity

Tags:

git

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?

like image 326
Germano Massullo Avatar asked Mar 13 '13 17:03

Germano Massullo


2 Answers

If you just want to set it for that repository, run:

git config user.email "[email protected]"
git config user.name "Your Name"
like image 111
Dan McClain Avatar answered Oct 04 '22 03:10

Dan McClain


Just type the same name that you have in your GitHub account, the same the same letters and character.

GitHub account name

git user.name

like image 39
Grace Nikole Avatar answered Oct 04 '22 03:10

Grace Nikole