Re: 'typechange' in the git-status output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]