Fatal: The remote end hung up unexpectedly while p

2019-01-18 10:33发布

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@github.com:neilghosh/DirectorySocket.git
$ 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.

标签: git push
3条回答
可以哭但决不认输i
2楼-- · 2019-01-18 10:39

Direct link to GitHub explanation here:

https://help.github.com/articles/generating-ssh-keys

查看更多
淡お忘
3楼-- · 2019-01-18 10:52

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

http://help.github.com/win-set-up-git/

As a first step, see if

 ssh -T git@github.com

works.

查看更多
看我几分像从前
4楼-- · 2019-01-18 10:52

There are a couple of leads here - it is most likely an authorization issue. Have you uploaded your public key to GitHub?

What is your network situation? I get this response behind my restrictive corporate firewall - the answer there is to use the smart HTTP support now supported by GitHub.

查看更多
登录 后发表回答