VCS comparison table
Jakub Narebski
jnareb at gmail.com
Tue Oct 17 01:24:03 BST 2006
Linus Torvalds wrote:
>> > So there is seldom any real need or reason to actually have multiple
>> > checkouts. But it certainly _works_.
>>
>> But without .git being either symlink, or .git/.gitdir "symref"-link,
>> you have to remember what to ser GIT_DIR to, or parameter for --git-dir
>> option.
>
> I'd strongly suggest that people who do this should actually do
>
> git clone -l
>
> instead of actually playing games with symlinking .git/ itself or using
> GIT_DIR. It means that the two checkouts get separate branch namespaces,
> but that's really what you'd want most of the time.
Or symlinking .git/objects (and perhaps .git/remotes and .git/branches).
BTW. wouldn't it be rather git clone -l -s? What would happenm on repack,
or on repack -a -d?
But it is true that there is no need to checkout different branches
to different working areas.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
More information about the bazaar
mailing list