# git push issue

4 messages from 2006-03-02 to 2006-03-02. Participants: Aubrey, Junio C Hamano.
Thread: https://gitlist.dev/t/3518

## Aubrey, 2006-03-02 09:47

Subject: git push issue
Message-ID: <6d6a94c50603020147l450d1cdfp1bc1747dc79189ce@mail.gmail.com>
URL: https://gitlist.dev/e/6d6a94c50603020147l450d1cdfp1bc1747dc79189ce%40mail.gmail.com

```
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, 2006-03-02 09:58

Subject: Re: git push issue
Message-ID: <7v4q2h6ucs.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v4q2h6ucs.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <6d6a94c50603020147l450d1cdfp1bc1747dc79189ce@mail.gmail.com>

```
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, 2006-03-02 10:46

Subject: Re: git push issue
Message-ID: <6d6a94c50603020246g1520ceahb970da7bbf965dfc@mail.gmail.com>
URL: https://gitlist.dev/e/6d6a94c50603020246g1520ceahb970da7bbf965dfc%40mail.gmail.com
In-Reply-To: <7v4q2h6ucs.fsf@assigned-by-dhcp.cox.net>

```
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, 2006-03-02 15:21

Subject: Re: git push issue
Message-ID: <6d6a94c50603020721t75a8e298q99712bbae41abe16@mail.gmail.com>
URL: https://gitlist.dev/e/6d6a94c50603020721t75a8e298q99712bbae41abe16%40mail.gmail.com
In-Reply-To: <6d6a94c50603020246g1520ceahb970da7bbf965dfc@mail.gmail.com>

```
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

```
