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

After having problem with estabilishing connection to 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

and error has occured after:

git push origin master
error: Cannot access URL, 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 .

In question:

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 but http(s)://

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, 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 the origin for the Hello-World repo $ git push origin master

What next?

share|improve this question

migrated from 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

2 Answers 2

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

share|improve this answer

Your Answer


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