From: Jeff King Date: Mon, 14 Mar 2011 19:27:23 GMT Subject: Re: 'typechange' in the git-status output Message-ID: <20110314192723.GA22434@sigill.intra.peff.net> In-Reply-To: <20110314192238.GA30378@elie> On Mon, Mar 14, 2011 at 02:22:38PM -0500, Jonathan Nieder wrote: > Hi, > > Drew Northup wrote: > > > As has been said more than a few times (and is probably somewhere in the > > docs), if you really want to duplicate a git repo you should probably be > > using git to do it. > > FWIW I don't agree with this advice. "cp -a" works perfectly well and > I think that's a valuable thing. Agreed. Note that "cp -a" really _duplicates_ a repo: refs, config, unreferenced objects, current packed state, etc. Using git to copy makes a clone, which is subtly different. So I don't think there is any reason to dissuade people from "cp -a" (cp without "-a", on the other hand, can be problematic as shown here). -Peff