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

Re: 'typechange' in the git-status output

From
Jeff King <peff@peff.net>
Date
Mar 14, 2011, 19:27 UTC
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:
Show 10 quoted lines
> 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
Previous: Jonathan NiederNext: Junio C Hamano
Message 6 of 7 in “'typechange' in the git-status output”
  1. Alexei SholikMar 14, 2011
  2. Jeff KingMar 14, 2011
  3. Alexei SholikMar 14, 2011
  4. Drew NorthupMar 14, 2011
  5. Jonathan NiederMar 14, 2011
  6. Jeff KingMar 14, 2011
  7. Junio C HamanoMar 14, 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.