Y
Y
Yarik Shilov2016-07-05 21:42:54
GitHub
Yarik Shilov, 2016-07-05 21:42:54

Git remote: Invalid username or password, what's wrong?

Hello everyone, well, let's get down to business!
I caught the 12kotov virus (maybe someone is familiar) I didn’t try anything, he deleted all the bookmarks (it was very sad) I couldn’t cure it, I decided to put things in order and bring everything back to factory settings (in fact, it was in a fit of anger and nerves ).
During the day, I installed everything, plugins and a bunch of progs.
Everything seems to be fine, but here is a git !!
(You can read it immediately from here)
I opened the folder in which I used to make up before the system rolled back, it came to pushing and then bam, asks for a log and password, took out a notepad, entered it, wrote:
Username for ' https://github.com ': adf (I just wrote this for you)
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/YaroslavShilov/Blank.git/ '
I went to github and recovered my password.
I enter again and again the same thing, I began to try to enter both the login and the mail, and whatever I did did not work.
I created another repository, I try to push via https and again the same thing, I pushed it through the ssh key, everything works
From here you can come to the conclusion "use ssh", but now everything that is unfinished lies on the PC I need to delete and clone, and if I have there is a mountain of commits that are not missed?
I googled but couldn't find anything, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2016-07-06
@isqua

Remove http-remote and add ssh-remote.
View remotes:
There will be something like this:

origin	https://github.com/YaroslavShilov/Blank.git/ (fetch)
origin	https://github.com/YaroslavShilov/Blank.git/ (push)

If it's https, remove it:
And then add ssh-remote:
And check that everything is ok:
There should be something like this:
origin	[email protected]:YaroslavShilov/Blank.git (fetch)
origin	[email protected]:YaroslavShilov/Blank.git (push)

And then push to your health :) More details - in the documentation .
The push password may not be suitable because you have two-factor authentication enabled. Or because you enter it incorrectly, it is not visible during the input :) Use SSH, it's convenient and safe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question