Re: adding arbitary folders to the git index, from outside of the repository

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

 



2009/4/29 Robin Rosenberg <robin.rosenberg.lists@xxxxxxxxxx>:
> onsdag 29 april 2009 00:54:54 skrev Andrew Bush:
>> I have a desire to have a single git repository that tracks the
>> content of an array of folders located in various places across my
>> file system.

> What I do sometimes is set GIT_DIR and then add paths relative to
> / and adding excludes for some paths. That way I can cover /etc and
> selected parts of /var and other interesting areas. You cannot
> however have different roots for your trees, unless you make
> the tree using e.g symbolic links to the different directories.

You can also support having different roots for your trees if you
commit them to distinct branches. You would need to remember which
root applies to each branch, but you could name the branches var, etc,
usr/local/etc, home/andrew etc.

Mike
--
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]