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

Re: lost again on syntax change - local repository?

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Nov 28, 2005, 13:04 UTC
Message-ID
<86hd9w7wk7.fsf@blue.stonehenge.com>
In-Reply-To
<7v7jat2w6u.fsf@assigned-by-dhcp.cox.net>
>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes:

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

Well, then, you should get rid of cogito/Documentation/introduction.html, if you don't plan on supporting the interfaces described there.

I'm really just starting out. I see that tutorial, and I want to do it.

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

Ugh, ugh ugh ugh.
Junio> 	$ git push origin

Junio> I said "may be" because I do not understand the sequence before Junio> "At this point"; how your local.git is initially set up to Junio> relate to the remoge.git. I do not see local.git being created Junio> by cloning remote.git.

I can't, because I have to do the first push. This is what I was told last time!

I'm doing what I'm told, and now more things are breaking. This is frustrating.

I'm not saying that you guys aren't doing a hell of a job. I'm just coming at this from a user's perspective, and trying to describe it to others. I'm not comfortable yet, because every time I try to do what the manuals say, it breaks. Perhaps y'all are secretly working around every broken thing, but I don't know enough to do that.

Junio> But modulo that the above should work Junio> fine; I do that as a cheap backup on my local machine.

So, give me the exact steps, using "cg" to:
        create a "remote" repo on my disk
        create a "local" repo on my disk
        set up the linkage between remote and local
        push from local to remote
        pull from remote to local

And if it ever needs a command like "cat" or "echo", something is wrong. I'll accept a "git-" command for one or two of the steps, but that feels like dropping into assembler instead of C.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Alecs KingNext: Petr Baudis
Message 4 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.