From: Matthieu Moy <Matthieu.Moy@imag•fr>
To: Paul Gardiner <osronline@glidos•net>
Cc: git@vger•kernel.org
Subject: Re: New to git: sorry for obvious question.
Date: Mon, 04 Feb 2008 11:27:49 +0100 [thread overview]
Message-ID: <vpq4pcp6moq.fsf@bauges.imag.fr> (raw)
In-Reply-To: <47A6E130.7090909@glidos.net> (Paul Gardiner's message of "Mon\, 04 Feb 2008 09\:56\:00 +0000")
Paul Gardiner <osronline@glidos•net> writes:
> 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
next prev parent reply other threads:[~2008-02-04 10:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 9:56 New to git: sorry for obvious question Paul Gardiner
2008-02-04 10:27 ` Matthieu Moy [this message]
2008-02-04 10:41 ` Paul Gardiner
2008-02-04 10:51 ` Boaz Harrosh
2008-02-04 10:50 ` Luciano Rocha
2008-02-04 12:04 ` Paul Gardiner
2008-02-04 13:10 ` Boaz Harrosh
2008-02-04 14:17 ` Paul Gardiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpq4pcp6moq.fsf@bauges.imag.fr \
--to=matthieu.moy@imag$(echo .)fr \
--cc=git@vger$(echo .)kernel.org \
--cc=osronline@glidos$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox