Using git on / for configuration files
ilya
ilya at total-knowledge.com
Wed Jun 6 16:33:15 IDT 2012
On 06/06/12 16:03, Eli Billauer wrote:
> There seems to be a misunderstanding about git: If the repository is
> on /, it doesn't mean all files are tracked. On the contrary, they are
> handpicked with "git add". On the other hand, if I put the repository
> under /etc, I'm not so sure I'll be able to track something under,
> say, /var.
1. The files may not be tracked, but they will show up on git status,
and generally
get in the way of being useful.
2. Correct, you will not be able to track files in /var. On the other
hand, those files are rarely config files, and even more rarely
are bound to things in /etc/
>
> File ownership is an interesting issue. I suppose all relevant files
> belong to root, but maybe some of them have some different group setting.
some of the mail-related config files for certain MTAs come to mind
right away.
Some database systems also often are in similar situation.
On the other hand, number of files affected by this isn't too large, and
adding some hooks to your repo
to maintain this information should not be hard.
> On 06/06/2012 01:34 PM, ilya wrote:
>> It is generally possible, though I'd recommend making your git repo out of
>> /etc, not /, since this is what you mostly want to track, and managing
>> .gitignore of
>> the whole FS will be too painful.
>> One thing git does not track though, is file ownership. This might be a
>> problem for
>> some files.
>>
>
>
> --
> Web: http://www.billauer.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120606/4e2fd12c/attachment-0001.html>
More information about the Linux-il
mailing list