致命:在推送到Git存储库时,远程端意外挂断 [英] Fatal: The remote end hung up unexpectedly while pushing to Git repository
问题描述
我创建了一个名为DirectorySocket的新存储库,并从我的项目目录DirectorySocket中执行以下操作:
$ git init
$ git add。
$ git remote add origin git@github.com:neilghosh / DirectorySocket.git
$ git commit -m初始版本
$ git push origin master
我得到以下错误:
错误:neilghosh / DirectorySocket.git的权限被拒绝给
neilghosh / googly。致命:远程终端意外挂断
为什么它试图在GitHub上推送到我的另一个存储库?
在删除 .git
文件夹并重新开始之后,也会发生这种情况。
由于它是你的仓库,所以按照GitHub提供的说明检查密钥和标记是否正确设置。
http://help.github.com/win-set-up-git/作为第一步,看看是否
ssh -T git@github.com
的作品。
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.
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.
这篇关于致命:在推送到Git存储库时,远程端意外挂断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!