{"thread":{"id":"3518","subject":"git push issue","startedAt":"2006-03-02T09:47:36Z","lastAt":"2006-03-02T15:21:41Z","messageCount":4,"participants":["Aubrey","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"17024","messageId":"6d6a94c50603020147l450d1cdfp1bc1747dc79189ce@mail.gmail.com","threadId":"3518","inReplyTo":null,"subject":"git push issue","fromName":"Aubrey","fromEmail":"aubreylee@gmail.com","sentAt":"2006-03-02T09:47:36Z","receivedAt":"2006-03-02T09:47:36Z","isPatch":false,"sender":{"key":"aubreylee@gmail.com","avatar":null},"body":"Hi all,\n\nI followed the instruction of here:\nhttp://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html\nto publish my work.\nBut I run into a problem when I run the command \"git push\", see below:\n======================================================\naubrey@linux:~/public_html/u-boot.git> git push\n10.99.22.20:/home/aubrey/public_html/my-git.git master\nPassword:\nerror: src refspec master does not match any.\nerror: dst refspec master does not match any existing ref on the\nremote and does not start with refs/.\nfatal: unexpected EOF\n======================================================\nThe remote machine is in the same subnet as mine.\nMany thanks to your help.\n\nRegards,\n-Aubrey\n"},{"id":"17025","messageId":"7v4q2h6ucs.fsf@assigned-by-dhcp.cox.net","threadId":"3518","inReplyTo":"6d6a94c50603020147l450d1cdfp1bc1747dc79189ce@mail.gmail.com","subject":"Re: git push issue","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-03-02T09:58:43Z","receivedAt":"2006-03-02T09:58:43Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Aubrey <aubreylee@gmail.com> writes:\n\n> aubrey@linux:~/public_html/u-boot.git> git push\n> 10.99.22.20:/home/aubrey/public_html/my-git.git master\n\n> error: src refspec master does not match any.\n> error: dst refspec master does not match any existing ref on the\n> remote and does not start with refs/.\n\nThe error message tells you that\n\n (1) directory you are in (u-boot.git) does not have a ref that\n     matches \"master\".  Do you have the \"master\" branch?\n\n (2) remote repository at 10.99.22.20:/home/.../my-git.git does\n     not have a ref that matches \"master\".\n\nThe problem on your end must be fixed first.  Then once you have\nthe master branch in u-boot.git directory (I presume\n~/public_html/u-boot.git/.git/refs/heads/master would be the\nfile you would need to see), then the problem on the other end\nneeds to be dealt with.\n\nIf you are creating a branch over there afresh, you need to\nspell it out, like this:\n\n\t$ git push 10.99..:.../my-git.git master:refs/heads/master\n\nAfter you have done that once (hence creating\n/home/aubrey/public_html/my-git.git/.git/refs/heads/master file\nover there), you can do the command line I quoted at the\nbeginning of this message.\n"},{"id":"17026","messageId":"6d6a94c50603020246g1520ceahb970da7bbf965dfc@mail.gmail.com","threadId":"3518","inReplyTo":"7v4q2h6ucs.fsf@assigned-by-dhcp.cox.net","subject":"Re: git push issue","fromName":"Aubrey","fromEmail":"aubreylee@gmail.com","sentAt":"2006-03-02T10:46:58Z","receivedAt":"2006-03-02T10:46:58Z","isPatch":false,"sender":{"key":"aubreylee@gmail.com","avatar":null},"body":"Thanks a lot.\nNow git push is OK.\nIs it time to try to clone the git repository from the remote machine to my end?\nI have started up the git-daemon, but still get the following error:\n============================================================\n git clone git://10.99.22.20:/home/aubrey/public_html/my-git.git git-test\nfatal: unable to connect a socket (Connection refused)\nclone-pack from 'git://10.99.22.20:/home/aubrey/public_html/my-git.git' failed.\n\nIf I want to clone it by http:// or git://, Could you please give me\nsome instructions or docs?\n\nThanks a million.\n\nRegards,\n-Aubrey\n"},{"id":"17041","messageId":"6d6a94c50603020721t75a8e298q99712bbae41abe16@mail.gmail.com","threadId":"3518","inReplyTo":"6d6a94c50603020246g1520ceahb970da7bbf965dfc@mail.gmail.com","subject":"Re: git push issue","fromName":"Aubrey","fromEmail":"aubreylee@gmail.com","sentAt":"2006-03-02T15:21:41Z","receivedAt":"2006-03-02T15:21:41Z","isPatch":false,"sender":{"key":"aubreylee@gmail.com","avatar":null},"body":"OK. I help myself out.\nIt's not complex to put own work on a web server. And it works on my\nend. Because git:// or rsync:// need the port which it's possibly\nunaccessible behind a firewall. I think it's good enough so far to use\nhttp connection.\n\nRegards,\n-Aubrey\n"}]}