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

Re: Git repository mesh?

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 25, 2009, 10:08 UTC
Message-ID
<81b0412b0911250208v67a16637s72551a892af4b0d8@mail.gmail.com>
In-Reply-To
<fcaeb9bf0911242007t1294bddej87b48691ea283e21@mail.gmail.com>
On Wed, Nov 25, 2009 at 05:07, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 8 quoted lines
> I work on a few machines so I have repositories on all of them. One
> repository can pull from or push to any other repositories (in case of
> push, it pushes on remote branches). I avoid a central repository
> because it's quite inconvenient when you just need to push some
> changes to a machine, you have to push it to the central repository
> then pull from that (and if the central repository is on WAN, double
> inconvenient). Maybe this model is just plain wrong, but it'd be fun
> to see if Git can work with this model.
You can always use fetch (and pull) without specifying a remote:
  $ git fetch host:/path/repo some-branch
  $ git log ..FETCH_HEAD # git merge FETCH_HEAD
Maybe fetch should be extended to record this operation in .git/config?
  $ git fetch ---save=host-some host:/path/repo some-branch some-branch
  $ git remote -v
  ...
  host-some	host:/path/repo (fetch)
  $
Previous: Sergio
Message 9 of 9 in “Git repository mesh?”
  1. Nguyen Thai Ngoc DuyNov 25, 2009
  2. Matthieu MoyNov 25, 2009
  3. Nguyen Thai Ngoc DuyNov 25, 2009
  4. Matthieu MoyNov 25, 2009
  5. Nguyen Thai Ngoc DuyNov 25, 2009
  6. Jakub NarebskiNov 25, 2009
  7. Matthieu MoyNov 25, 2009
  8. SergioNov 25, 2009
  9. Alex RiesenNov 25, 2009

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.