From: Matthieu Moy Date: Mon, 04 Feb 2008 10:27:49 GMT Subject: Re: New to git: sorry for obvious question. Message-ID: In-Reply-To: <47A6E130.7090909@glidos.net> Paul Gardiner 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 > > 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