* git push issue
@ 2006-03-02 9:47 Aubrey
2006-03-02 9:58 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Aubrey @ 2006-03-02 9:47 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git push issue
2006-03-02 9:47 git push issue Aubrey
@ 2006-03-02 9:58 ` Junio C Hamano
2006-03-02 10:46 ` Aubrey
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-03-02 9:58 UTC (permalink / raw)
To: Aubrey; +Cc: git
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git push issue
2006-03-02 9:58 ` Junio C Hamano
@ 2006-03-02 10:46 ` Aubrey
2006-03-02 15:21 ` Aubrey
0 siblings, 1 reply; 4+ messages in thread
From: Aubrey @ 2006-03-02 10:46 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git push issue
2006-03-02 10:46 ` Aubrey
@ 2006-03-02 15:21 ` Aubrey
0 siblings, 0 replies; 4+ messages in thread
From: Aubrey @ 2006-03-02 15:21 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-02 15:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 9:47 git push issue Aubrey
2006-03-02 9:58 ` Junio C Hamano
2006-03-02 10:46 ` Aubrey
2006-03-02 15:21 ` Aubrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).