1

I'm trying to push my project to github repository. On my new project I did following commands:

git init
git commit -m "first commit"
git remote add origin https://github.com/myaccount/MyRepoName.git

But when I'm trying to push my commit like this:

git push -u origin master

It gives me following error information:

fatal: Full write to remote helper failed: Invalid argument
Error reading command stream

I found nothing about this in google. Please, help me fix this issue.

Mat
  • 202,337
  • 40
  • 393
  • 406
kemot90
  • 551
  • 3
  • 14
  • Use the ssh read/write URL instead of using the read-only https url. it should be like git@github.com/myaccount/MyRepoName.git. – gnuanu Oct 04 '13 at 18:38
  • Now it gives me message: fatal: 'git@github.com/myaccount/MyRepoName.git' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. – kemot90 Oct 04 '13 at 18:45
  • 1
    Sorry for the typo. It should be, git@github.com:username/Repo.git – gnuanu Oct 04 '13 at 18:50
  • OK, It looks it fix that issue. Thanks :) – kemot90 Oct 04 '13 at 19:14

1 Answers1

1

This error message comes from transport-helper.c, which calls one of the git remote helpers.

It is possible, after the recent DDoS that GitHub had to endure, that not all repos support well https push, hence the suggestion to switch transport protocol (with ssh git@github.com:username/repo.git, as commented by gnuanu).

But you should check in a few days if https works again for your repo.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250