git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Sharing home and etc files with git

From
Iiiijjjiii <iiijjjiii@gmail.com>
Date
Jun 5, 2008, 20:01 UTC
Message-ID
<48484607.5090505@gmail.com>

I would like to use git to keep revision histories of my home and etc directories. I have several computers and I like to keep their environments similar. I could see git pulls updating .bash_aliases, .bashrc, and various bash and perl scripts I create in the home directory, and updating /etc config files. Git pushes would share any recent changes to other computers. This way no matter which computer I am working on, the environment will be similar and I can make changes and know they will be copied to the others.

I haven't figured out a good way to deal with the files that have local settings in them. Using .gitignore feels a little overkill. Only certain lines of the files need to be unique. Once they are set, I'd like subsequent changes to be updated. I could cherry-pick manually but I'd like a more automated method. I have read about etckeeper, git-home-history and gibak, but they seem to be designed for backing up and versioning files on one computer and not for sharing files.

Has anyone done something similar using git or is another tool more suitable.

Thanks jimk

Next: Miklos Vajna
Message 1 of 3 in “Sharing home and etc files with git”
  1. iiijjjiiiJun 5, 2008
  2. Miklos VajnaJun 5, 2008
  3. Kelvie WongJun 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.