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

Re: lost again on syntax change - local repository?

From
Junio C Hamano <junkio@cox.net>
Date
Nov 28, 2005, 05:11 UTC
Message-ID
<7v7jat2w6u.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<861x118r9t.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 11 quoted lines
> At this point, I'm where I was before.  And this next step worked,
> although I had to say "origin":
>
>     localhost:..Git/Play/local.git % cg-push
>     WARNING: I guessed the host:path syntax was used and fell back to the git+ssh protocol.
>     WARNING: The host:path syntax is evil because it is implicit. Please just use a URI.
>     ssh: \033]2;[zsh] localhost: No address associated with nodename
>     fatal: unexpected EOF
>
> Uh, say what?  /some/file/foo.git#branch is no longer legal syntax?
> Help!

If it is not absolutely necessary that you need to use Cogito, IOW, if git barebone Porcelains are good enough for your use, the following may be adequate.

	$ echo >.git/remotes/origin <<EOF
	URL: /path/to/remote.git/
        Push: master
        Pull: master:origin
        EOF
	$ git push origin

I said "may be" because I do not understand the sequence before "At this point"; how your local.git is initially set up to relate to the remoge.git. I do not see local.git being created by cloning remote.git. But modulo that the above should work fine; I do that as a cheap backup on my local machine.

Previous: Randal L. SchwartzNext: Alecs King
Message 2 of 14 in “lost again on syntax change - local repository?”
  1. Randal L. SchwartzNov 28, 2005
  2. Junio C HamanoNov 28, 2005
  3. Alecs KingNov 28, 2005
  4. Randal L. SchwartzNov 28, 2005
  5. Petr BaudisNov 28, 2005
  6. Randal L. SchwartzNov 28, 2005
  7. Petr BaudisNov 28, 2005
  8. Randal L. SchwartzNov 28, 2005
  9. Randal L. SchwartzNov 28, 2005
  10. Petr BaudisNov 28, 2005
  11. Randal L. SchwartzNov 28, 2005
  12. Petr BaudisNov 28, 2005
  13. Randal L. SchwartzNov 28, 2005
  14. Petr BaudisNov 28, 2005

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.