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

Re: New to git: sorry for obvious question.

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Feb 4, 2008, 10:27 UTC
Message-ID
<vpq4pcp6moq.fsf@bauges.imag.fr>
In-Reply-To
<47A6E130.7090909@glidos.net>
Paul Gardiner <osronline@glidos.net> writes:
Show 12 quoted lines
> Hi,
>
> I've moved a project from CVS on sourceforge to git on repo.or.cz.  I
> want a local mirror on my own home server, so that it appears amongst
> the projects shown by my own gitweb set up, and so it gets caught by
> my backup system.  I've created the mirror with
>
>   git clone --bare <remote-url> <local-dir>
>
> and that seems fine.  But how do I now keep it up to date.  I was
> guessing a cron job doing some sort of git pull, but pull doesn't
> look to work on --bare proj.git type repositories.

You probably want "git fetch". Actually, "git pull" does a fetch first (get the remote revisions that you don't have), and then a merge with your working tree.

-- 
Matthieu
Previous: Paul GardinerNext: Paul Gardiner
Message 2 of 8 in “New to git: sorry for obvious question.”
  1. Paul GardinerFeb 4, 2008
  2. Matthieu MoyFeb 4, 2008
  3. Paul GardinerFeb 4, 2008
  4. Boaz HarroshFeb 4, 2008
  5. Luciano RochaFeb 4, 2008
  6. Paul GardinerFeb 4, 2008
  7. Boaz HarroshFeb 4, 2008
  8. Paul GardinerFeb 4, 2008

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.