SoulMan SoulMan - 8 months ago 69
Git Question

Fatal: The remote end hung up unexpectedly while pushing to Git repository

I created a new repository called DirectorySocket, and from my project directory called DirectorySocket I did the following:

git init

git add .

git remote add origin

git commit -m "Initial version"

git push origin master

And I got the following error

ERROR: Permission to neilghosh/DirectorySocket.git denied to
neilghosh/googly. fatal: The remote end hung up unexpectedly

Why is it trying to push to another repository of mine on GitHub?
This happens also after I deleted the .git folder and started over.


Since it is your repository, check if the keys and token are setup properly as per the instructions provided by GitHub.

As a first step, see if

 ssh -T