git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: AubreyNext: Aubrey
Message 2 of 4 in “git push issue”
  1. AubreyMar 2, 2006
  2. Junio C HamanoMar 2, 2006
  3. AubreyMar 2, 2006
  4. AubreyMar 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.