threads / discuss / 3518

git push issue

Subject: git push issue

## tl;dr

4 messages between Mar 2, 2006 and Mar 2, 2006.

replies: 3people: 2as markdown or json

Aubrey· Mar 2, 2006, 09:47 UTC · lore
Hi all,

I followed the instruction of here: http://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html to publish my work. But I run into a problem when I run the command "git push", see below: ====================================================== aubrey@linux:~/public_html/u-boot.git> git push 10.99.22.20:/home/aubrey/public_html/my-git.git master Password: error: src refspec master does not match any. error: dst refspec master does not match any existing ref on the remote and does not start with refs/. fatal: unexpected EOF ====================================================== The remote machine is in the same subnet as mine. Many thanks to your help.

Regards, -Aubrey

Junio C Hamano· Mar 2, 2006, 09:58 UTC · re: Aubrey · lore

Re: git push issue

Aubrey <aubreylee@gmail.com> writes:
> aubrey@linux:~/public_html/u-boot.git> git push
> 10.99.22.20:/home/aubrey/public_html/my-git.git master
> error: src refspec master does not match any.
> error: dst refspec master does not match any existing ref on the
> remote and does not start with refs/.
The error message tells you that
 (1) directory you are in (u-boot.git) does not have a ref that
     matches "master".  Do you have the "master" branch?
 (2) remote repository at 10.99.22.20:/home/.../my-git.git does
     not have a ref that matches "master".

The problem on your end must be fixed first. Then once you have the master branch in u-boot.git directory (I presume ~/public_html/u-boot.git/.git/refs/heads/master would be the file you would need to see), then the problem on the other end needs to be dealt with.

If you are creating a branch over there afresh, you need to spell it out, like this:

	$ git push 10.99..:.../my-git.git master:refs/heads/master

After you have done that once (hence creating /home/aubrey/public_html/my-git.git/.git/refs/heads/master file over there), you can do the command line I quoted at the beginning of this message.

Aubrey· Mar 2, 2006, 10:46 UTC · re: Junio C Hamano · lore

Re: git push issue

Thanks a lot.
Now git push is OK.
Is it time to try to clone the git repository from the remote machine to my end?
I have started up the git-daemon, but still get the following error:
============================================================
 git clone git://10.99.22.20:/home/aubrey/public_html/my-git.git git-test
fatal: unable to connect a socket (Connection refused)
clone-pack from 'git://10.99.22.20:/home/aubrey/public_html/my-git.git' failed.

If I want to clone it by http:// or git://, Could you please give me some instructions or docs?

Thanks a million.

Regards, -Aubrey

Aubrey· Mar 2, 2006, 15:21 UTC · re: Aubrey · lore

Re: git push issue

OK. I help myself out. It's not complex to put own work on a web server. And it works on my end. Because git:// or rsync:// need the port which it's possibly unaccessible behind a firewall. I think it's good enough so far to use http connection.

Regards, -Aubrey

← back to recent threads