On Sun, 23 Mar 2008, H. Peter Anvin wrote: > This much later, there are a few minor things I still miss from Cogito. I > believe fixing either would be quite trivial, so I thought I'd post a note. > > 1. The ability to clone into the current directory > > cg-clone had a -c option, which allowed cloning into the current > directory. This is particularly useful, since I keep my common > dot files in a git repository, so all I need to do to set up a new > machine is to clone that git repository over my empty home directory. > > Native git doesn't have any equivalent, other than: > > git clone -n .... tmp > mv tmp/.git . > rm -rf tmp > git checkout HEAD Maybe "git --work-tree=. clone <remote>"? It currently complains about the directory existing, but we could have a flag to override that. And this ends up with a sort of neat arrangement where your home directory is "Not a git repository", but if you go into the subdirectory that has the repo files, you can do all the usual stuff. This helps to avoid the case where you forget to do "git init" in a new project and accidentally check things into your dotfiles. -Daniel *This .sig left intentionally blank* -- 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