M HYPE SPLASH
// news

Git suddenly stopped working

By Emma Valentine

On the terminal in Ubuntu Server 16.04.2 LTS I wanted to pull a git repository (which I was working on the last hours). I used

git fetch && git pull

as all the times before.

The first (fetch) actually worked but the second (pull) failed though I provide exactly the same credentials.

Username for ' XXXXXXXXX
Password for '
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 15 (delta 9), reused 15 (delta 9), pack-reused 0
Unpacking objects: 100% (15/15), done.
From 55e79f9..4fd7878 master -> origin/master
Username for ' XXXXXXXXX
Password for '
remote: Invalid username or password.
fatal: Authentication failed for '

Because I used this procedure multible times the last few hours I wanted to check again if I had maybe a typo in the pull procedure. But now I get this error already on the first command though there is no doubt I provide the correct credentials

$ git fetch Username for ' XXXXXXXXX Password for ' remote: Invalid username or password. fatal: Authentication failed for '

What can I do to fix this and repair my git behavior on this machine?

NOTES:

  • The repository is for Chef on the Chef-Workstation so removing the folder and clone again is not an option for me or at least the very last because a lot of stuff is excluded via .gitignore and I don't know if e.g. any links could brake.

  • I don't use Two-Factor Authentication.

  • I didn't change anything especially not inbetween the two commands.

  • I still can login to Gihub on the webpage using my credentials.

  • I can fetch/pull from other machines.


I've read about this here and also here (though I don't use SSH but password authentification) but nothing helped so far.

Here the ouput of git remote -v

origin (fetch)
origin (push)
2

1 Answer

Ok, I still don't understand what happened but I solved this now:

In Sourcetree on Windows it still worked. Just for trying I edited my profile and tried to reset the password => Worked before but now it sayd authentication error

So I went to the Github webpage, logged into my account (still using this same credentials ?!) and changed my password ... and than I changed it back again.

Now everything works fine.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy