Re: Git: "No you can't handle my root!" (?)

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

 



Quoting Daniele Segato <daniele.bilug@xxxxxxxxx>:

Il giorno lun, 12/10/2009 alle 01.28 -0400, sylvain@xxxxxxxxxxxxxx ha
scritto:
localhost / # git init

I don't see the point of using git on the root directory :)

but that made me think that it could actually be a good idea
for /etc/ :)
I happen to modify some configuration and then I forgot which one... and
sometimes updates broke something


And that make me think of another question...

is there a way to have a git repo for a subset of directory that match a
pattern?

for instance...

can I have a git report of $HOME/.* (without . and ..)? (all user
setting)

Or better: provide a list of directory under $HOME I want to track

Instead of providing the list of directory I want to ignore i would like
to provide the list of the directory and files I want to track :)

I probably am going out of topic here but I hope you forgive me :)

I am still a Git newbee, but I am using GNU/Linux for a long time now. I have just reformatted my disk and installed Gentoo and I have to setup all these little things all over again. Since I clean install only every couple of years, I often forget some details, etc.

So I am trying something new. I have my "home Git" at "~/.git" and the "root Git" at "/root/.git" with the GIT_WORK_TREE at "/". Both have "*" in "info/exclude", so I do provide my list of directories and files I want to track explicitly by adding them one by one.

My home Git takes care of .bash* .vim* .emacs*, firefox passwords and bookmarks, etc. My root git takes care of some "/etc", "/var" configs, etc. (That is the reason why I wanted it on "/", because some configuration tweaks are done outside of "/etc". Oh, I forgot to mention "/usr/src/linux/.config")

My hope is that next time I'll clean install my system, I won't have to backup my whole disk and then mount it again to recover configs pieces by pieces. I'll just copy my two Git repositories and I'll should be OK.

All praise the Git. :-)
--
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]