Background:
I had a personal account that was working fine with github, then my employer gave me a new github account and so i configured my github account to use my machine generated SSH key. Now my old machine is replaced ....
How do i configure this new machine to check-in check-out code to github..
do i generate and add another key to the account? it is also asking me for email account..when i give my old([email protected]) (email added on git hub) it says:
error: invalid key: [email protected]
Directly adding it says
*** 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.
fatal: unable to auto-detect email address (got 'x y@DESKTOP-8ITRR8F.(no ne)')
UPDATE
windows 10 doesnot allow creating a folder .ssh in c:/users/samra/.. and when i try to generate key (thinking it may create a .ssh in the process) it says
Saving key failed: No such file or directory found