Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push origin master Missing or invalid credentials

Cannot push anymore to origin master, git push origin master, since a few days, I have uninstalled git and Visual Code and reinstalled it but nothing, I'v got same error :

Missing or invalid credentials.
Error: socket hang up
    at connResetException (internal/errors.js:559:14)
    at Socket.socketOnEnd (_http_client.js:433:23)
    at Socket.emit (events.js:208:15)
    at endReadableNT (_stream_readable.js:1168:12)
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  code: 'ECONNRESET'
}

I do not understand this behavior, because on my other computer everything works, and no GitHub files are corrupted.

here is my configuration : Ubuntu 18.04.4 LTS

Need some help please !

like image 691
hexphp111 Avatar asked Jul 02 '20 13:07

hexphp111


People also ask

How do I fix Git always asking for credentials?

Entering Git Username and Password in Remote URL To prevent Git from asking for your username and password, you can enter the login credentials in the URL as shown. The main drawback of this method that your username and password will be saved in the command in the Shell history file.

How do I fix invalid credentials in bitbucket?

Go to Personal settings from the menu at the top. Click on App passwords and set up the permissions as required as shown below. Copy the generated password and use it on the authentication prompt. This will resolve the issue.


2 Answers

I had this error yesterday using the built in terminal in VScode. My issue was that vscode was prompting me for my github username and password at the top of VScode, and not in the terminal. I just didn't see the input field and the auth connection eventually timed out in the terminal.

like image 188
asg86260 Avatar answered Oct 19 '22 03:10

asg86260


Missing or invalid credentials. Error: socket hang up.

VS code always reset the git password when you close the application. When you try to push, along with this error, there is a popup box in the top asking again the git password. Enter your git password and push again.

like image 3
Nikhil Tomy Avatar answered Oct 19 '22 02:10

Nikhil Tomy