gpt4 book ai didi

git - 致命 : The remote end hung up unexpectedly while pushing to Git repository

转载 作者:IT王子 更新时间:2023-10-29 01:27:28 25 4
gpt4 key购买 nike

我创建了一个名为 DirectorySocket 的新存储库,并从名为 DirectorySocket 的项目目录中执行了以下操作:

$ git init
$ git add .
$ git remote add origin git@github.com:neilghosh/DirectorySocket.git
$ git commit -m "Initial version"
$ git push origin master

我得到了以下错误:

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

为什么它试图推送到我在 GitHub 上的另一个存储库?在我删除 .git 文件夹并重新开始后也会发生这种情况。

最佳答案

因为这是您的存储库,请按照 GitHub 提供的说明检查 key 和 token 是否设置正确。

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

作为第一步,看看是否

 ssh -T git@github.com

有效。

关于git - 致命 : The remote end hung up unexpectedly while pushing to Git repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6808653/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com