Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse无法推送到Github_Eclipse_Git_Github - Fatal编程技术网

Eclipse无法推送到Github

Eclipse无法推送到Github,eclipse,git,github,Eclipse,Git,Github,我已经安装了EGit并创建了一个repo,并使用以下步骤将其推送到github: 步骤1: 步骤2: 步骤3: 步骤4: 步骤5: 步骤6: 我得到以下错误: 无法连接到任何存储库:(:远程端解包期间出错:索引包异常退出) 我也尝试过使用ssh,但它甚至不允许我通过步骤3。通过http,我可以通过步骤3 谢谢您的帮助。请使用存储库的ssh地址。http是只读的 git@github.com:mleoking/JavaGnuplotHybrid.git 自己发现问题: 我只是删除了我

我已经安装了EGit并创建了一个repo,并使用以下步骤将其推送到github:

步骤1:

步骤2:

步骤3:

步骤4:

步骤5:

步骤6:

我得到以下错误:

无法连接到任何存储库:(:远程端解包期间出错:索引包异常退出)

我也尝试过使用ssh,但它甚至不允许我通过步骤3。通过http,我可以通过步骤3


谢谢您的帮助。

请使用存储库的ssh地址。http是只读的

git@github.com:mleoking/JavaGnuplotHybrid.git

自己发现问题:

我只是删除了我的项目的git存储库,然后按照以下指南创建一个新的git存储库:

然后仍然使用相同的步骤,使用https而不是ssl。我成功地将其提交给github:


我真的不知道问题出在哪里。但上述步骤最终会起作用。

在自定义linux repos上,可能是权限错误:

cd <path_to_git_folder.git>
chmod -R 777 *
cd
chmod-R 777*
我通常在git工作中使用。