Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After having problem with estabilishing connection to github.com now I have a problem with next step - pushing. I need to mention, that I am novice at GIT service, and this whole Distributed Subversion Checking Systems world..

I have done git init, then git add *.h and git add *.cpp, but currently git status does not print anything in "# On branch master" section? Previously It was correctly printing whole list of added files, now this list is gone. Nextly, I have executed:

git remote add origin https://github.com/mgeeky/disasm.git

and error has occured after:

git push origin master
error: Cannot access URL https://github.com/mgeeky/disasm.git/, return code 22
fatal: git-http-push failed

What should I do now? I've tried:

git push origin
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date

But it seems to be okay.


Yes, I have already done git commit, I have a files in commit (named "initial" ) but still can't push them to github.com .

In question: http://superuser.com/questions/256152/another-ssh-connect-to-host-github-com-port-22-bad-file-number

I had a problem with connection to the server. Through SSH I am not able to connect (problem 22: Bad file number), so only way for me is to use Smart HTTP method, so I can't use git@github.com:mgeeky/disasm.git but http(s)://github.com/mgeeky/disasm.git

But this is not what I am asking about. The point is that after git commit and after git push origin master I receive error: Cannot access URL https://github.com/mgeeky/disasm.git/, return code 22 fatal: git-http-push failed

What could I do with this? I still not able to use GIT and constantly trying.. Yes, I tried Github Bootcamp, and have stopped at 3.1 "Create A Repo"->"Commit your README" at

$ git remote add origin git@github.com:username/Hello-World.gitSets the origin for the Hello-World repo $ git push origin master

What next?

share|improve this question

migrated from superuser.com Mar 12 '11 at 16:24

This question came from our site for computer enthusiasts and power users.

Have you followed guide 1, 2 and 3 in the Github Bootcamp? – Znarkus Mar 11 '11 at 22:35

Did you git commit?

Adding the files just puts them into git's "staging area", but does not yet commit them to the history.

See add and commit on Gitref.

share|improve this answer

Try editing your git config file, located in .git/config.

You will have to change:




then do:

git add .

and then:

git commit -m "Initial commit."

to add and commit changes you have made, you can then try to push changes to github.

See "Pushing" section in http://help.github.com/remotes/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.