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

Re: New to git

From
MMMarco Maggesi <marco.maggesi@gmail.com>
Date
Apr 9, 2011, 19:15 UTC
Message-ID
<BANLkTikCF7Kv2xVYmr3O_P2t1TAzEFxXiA@mail.gmail.com>
In-Reply-To
<20110408201024.GA15964@sigill.intra.peff.net>
Hi Chris and Peff,
2011/4/8 Jeff King <peff@peff.net>:
Show 13 quoted lines
> But if you are just using the server as a distribution point for a
> single repository, it can be much simpler. For example, if you always
> just want to push and overwrite what is on the server (i.e., like a
> mirror), you can just use plain rsync outside of git. To avoid mirror
> lag, you do want to update the objects before the refs. So this:
>
>  LOCAL=/path/to/repo.git
>  REMOTE=server:path/to/repo.git
>  rsync -a $LOCAL/objects/ $REMOTE/objects/
>  rsync -a $LOCAL $REMOTE
>
> would work. And then expose repo.git on the server via http or ftp, and
> clients can clone directly from it.
this is the solution I was looking for (but I where not sure that it worked).
> You didn't list your reasons, so I'll assume they're good. But note that
> you don't need to be the administrator to accept a git push. You can
> build it as a regular user, and have git connect over ssh and run the
> server side.

Well, the server is a very old machine and I didn't find easy to compile git on it because of many missing dependencies (but I didn't try very hard either). A better solution would be to upgrade the server. But your solution is perfect meanwhile.

Thank you, Marco

Previous: Jeff KingNext: Dmitry Potapov
Message 3 of 6 in “New to git”
  1. Marco MaggesiApr 8, 2011
  2. Jeff KingApr 8, 2011
  3. Marco MaggesiApr 9, 2011
  4. Dmitry PotapovApr 9, 2011
  5. Matthieu MoyApr 9, 2011
  6. Pushing to a "dumb" server (Re: New to git)Jonathan Nieder, Apr 8, 2011

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.