Code: Select all
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Andrey2470T/luxury_decor'
Code: Select all
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Andrey2470T/luxury_decor'
What's you local Git client? If you use the official command line client try to re-set your user name and password either locally or globally (if you use your account for different repositories and set it up globally before).Andrey01 wrote:It happened after I changed a password to new in my github profile.
Code: Select all
cd my_awesome_repository
git config --local user.name 'myCoolUserName'
git config --local user.password 'MySuperS3curePassw0rd'
My config file doesn't have "user.password" setting . And do I need it to be set when pushing/pulling?Linuxdirk wrote:What's you local Git client? If you use the official command line client try to re-set your user name and password either locally or globally (if you use your account for different repositories and set it up globally before).Andrey01 wrote:It happened after I changed a password to new in my github profile.
Or --global.Code: Select all
cd my_awesome_repository git config --local user.name 'myCoolUserName' git config --local user.password 'MySuperS3curePassw0rd'
Ok, i'll try!shivajiva wrote:Better reset your password https://www.github.com/password_reset to regain access
It doesn`t change anything. :(((((Andrey01 wrote:Ok, i'll try!shivajiva wrote:Better reset your password https://www.github.com/password_reset to regain access
Thanks for replies.
Do you mind answering my questions and try what I suggested?Andrey01 wrote:My config file doesn't have "user.password" setting . And do I need it to be set when pushing/pulling?
No, it doesn't ask for it. It just waits for something for a while (2-3 seconds) and then says: "fatal: Invalid username or password". Obviously, I can not in time to enter my password within this time.Pyrollo wrote:Are you under Windows ? Does git asks your for a password when issuing "git push" ?
I already said the re-setting doesn't change anything.Linuxdirk wrote:Do you mind answering my questions and try what I suggested?Andrey01 wrote:My config file doesn't have "user.password" setting . And do I need it to be set when pushing/pulling?
This is because your locally stored credentials do not match your repository's credentials.Andrey01 wrote:and then says: "fatal: Invalid username or password". Obviously, I can not in time to enter my password within this time.
Just do what I said.Andrey01 wrote:I already said the re-setting doesn't change anything.
I did set username and password globally because I want to use my account for all repos as you told me. And I say it doesn't fix this issue.Linuxdirk wrote:This is because your locally stored credentials do not match your repository's credentials.Andrey01 wrote:and then says: "fatal: Invalid username or password". Obviously, I can not in time to enter my password within this time.
Just do what I said.Andrey01 wrote:I already said the re-setting doesn't change anything.
Well, you locally stored credentials are your locally stored credentials. Either username/password or certificate, or keyfile, or anything else. And whatever it is, it does not match the credentials for your repository. What did you use before? Password? Certificate? Make sure your credentials match your repository's credentials (if you use GitHub your repository credentials are your GitHub user name and password).Andrey01 wrote:Also, I don't know what "your locally stored credentials don't match your repository's credentials" implies. What are local credentials?
Ah, you mean they don't match to ones' my remote repisitory. My local credentials exactly match to repository's ones. What very strange is what I actually did not save them before the changing my password in both ~/.gitconfig and .git/config files and I could push changes without any hinders. Since even their enabling don't perfectly help.Linuxdirk wrote:Well, you locally stored credentials are your locally stored credentials. Either username/password or certificate, or keyfile, or anything else. And whatever it is, it does not match the credentials for your repository. What did you use before? Password? Certificate? Make sure your credentials match your repository's credentials (if you use GitHub your repository credentials are your GitHub user name and password).Andrey01 wrote:Also, I don't know what "your locally stored credentials don't match your repository's credentials" implies. What are local credentials?
Obviously not. Otherwise you wouldn’t get a message about username or password being wrong. Git isn’t lying to you, you know? :)Andrey01 wrote:My local credentials exactly match to repository's ones.
So you used SSH before. Can you log in to your GitHub account? Maybe go here and upload your current public keys.Andrey01 wrote:What very strange is what I actually did not save them before the changing my password in both ~/.gitconfig and .git/config files and I could push changes without any hinders.
I verified my local credentials (username and password) exactly identical with the remote repo's ones and I can not mistake in it anyhow.Linuxdirk wrote:Obviously not. Otherwise you wouldn’t get a message about username or password being wrong. Git isn’t lying to you, you know? :)Andrey01 wrote:My local credentials exactly match to repository's ones.
Of course, I can log in. And I did use HTTPS, not SSH, why do you say? I say I attempted to push changes used SSH before, but it failed for an unknown reason.LinuxDirk wrote:So you used SSH before. Can you log in to your GitHub account? Maybe go here and upload your current public keys.Andrey01 wrote:What very strange is what I actually did not save them before the changing my password in both ~/.gitconfig and .git/config files and I could push changes without any hinders.
Maybe pushing to the wrong repo then? As said: Git isn't lying. If it says that your credentials are wrong, then your credentials are wrong. There. Are. No. Exceptions.Andrey01 wrote:I verified my local credentials (username and password) exactly identical with the remote repo's ones and I can not mistake in it anyhow.
Users browsing this forum: No registered users and 3 guests