Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git config --global user.email Wont let me change email after reinstalling

Tags:

Hey I reinstalled Github completely with all files removed.

Now I have installed it again but when I try to set it up i face some problems.

git config --global user.email '[email protected]'

When I write this the terminal changes the first sign from a "$" to a ">". And no further commands work, how can I set up my email again? I did manage to link it to my account before but now when I need to do it again it does not work, Github will however let me link other emails but not this one.

Sincerely me, any help is appreciated. My class just started and I dont wanna get behind and I cant get an answer from my professors yet

like image 488
FatDog Avatar asked Aug 30 '17 13:08

FatDog


1 Answers

This is the correct command:

git config --global user.email "[email protected]"

Note that in your example you are using ' instead of ".

Moreover you should learn that when in a shell the first character changes from $ to > it means that the command that you where entering in the previous line is still waiting for more inputs/parameters. Take a look here to more information about line-continuation

-- UPDATE -- I checked on Git documentation and it seems that the sugested form for this command is supposed to be:

git config --global user.email [email protected]

However for my experience also my first solution works on UNIX at least

like image 103
rakwaht Avatar answered Oct 11 '22 13:10

rakwaht