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

Re: [PATCH 1/2] tutorial: Use "git remote add"

From
Junio C Hamano <junkio@cox.net>
Date
Jan 12, 2007, 18:29 UTC
Message-ID
<7vmz4ot7x5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87sleg31av.fsf@gmail.com>
Santi Béjar <sbejar@gmail.com> writes:
Show 8 quoted lines
> @@ -285,10 +285,12 @@ at /home/bob/myrepo.  She does this with:
>  
>  ------------------------------------------------
>  $ cd /home/alice/project
> -$ git pull /home/bob/myrepo master
> +$ git remote add bob /home/bob/myrepo
> +$ git pull bob master
>  ------------------------------------------------

I'd prefer to leave this as is, because I think ad-hoc promiscous pull shows the distributed nature of git better, and add a new step after that to teach "remote add", telling the user that "having to use longhand every time is tiresome, so there is a nifty way to define a shorthand for a remote repository you interact with often".

Other than that, I agree with the direction of your change to use separate remote layout instead of mixed "incoming" branches.

Previous: Santi BéjarNext: Junio C Hamano
Message 2 of 4 in “tutorial: Use "git remote add"”
  1. 1/2 tutorial: Use "git remote add"Santi Béjar, Jan 12, 2007
  2. Junio C HamanoJan 12, 2007
  3. Junio C HamanoJan 12, 2007
  4. Santi BéjarJan 13, 2007

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.