L
L
learnfrontend002017-01-18 02:22:20
git
learnfrontend00, 2017-01-18 02:22:20

How to fix an error when changing an account?

I decided to change my github account. executed commands with new parameters
$ git config --global user.name "NewName"
$ ​​git config --global user.email "NewEmail"
when uploading files to the repository writes
$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2017-01-18
@planc

need a new key
https://gist.github.com/jexchan/2351996

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question