I have recently decided to use a version-control system to share my configuration files between my different linux installs.
After reading another thread I found on this subject, I'm planning to do it using git.
I would put my
/ under revision control with a top-level .gitignore set to
* and add manually each configuration file I want to keep track of (mainly files from
What I don't get though, is how I can handle different home directories. As an example, say on machine A I have
/home/foo/.vimrc and on machine B
/home/bar/.vimrc, how could I get git to keep both files under the same version control repository?
I am looking for a very lightweight solution that does just what I need to (no Puppet or Cfengine for example). I was thinking about creating a
.config folder in my
/home/whatever/ in which I would keep all my important configuration files using a git repository. A very simple script would then create the needed symbolic links from my
~/… and so on. Any other suggestions?