Re: git push issue
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 2, 2006, 09:58 UTC
- Message-ID
- <7v4q2h6ucs.fsf@assigned-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.