4 ms·
I use Gary Bernhardt's (non)-method, quoted here: IMO you don't need a special tool to manage your home directory / dotfiles. Git is the tool. Your home direct
by b3lm0nt 2y ago
I use Gary Bernhardt's (non)-method, quoted here:
IMO you don't need a special tool to manage your home directory / dotfiles. Git is the tool. Your home directory is a repo with a .git directory like any other repo. No other tools; no symlinks; nothing else. Commit what you want and gitignore the rest. I've done this since 2008.
Never had a problem with it.
- JoshTriplett 2y agoThat's what I do as well. Since you can .gitignore entire directories, that makes it easy. And one major advantage is having `git status` tell you if new things show up, so you can decide whether to track or ignore them (or change how/whether they're created in the first place).
- skinner927 2y agoOne better, put a '*' in your .gitignore and then !.vimrc the files you do want to track.
- sneak 2y agoyadm implements this model, but also allows for machine-specific branching and encrypted secrets (no secrets should be directly committed in git).
- sciencerobot 2y agoI switched to this method after using symlinks for years. This guide was helpful: https://queensidecastle.com/guides/tracking-your-home-directory-in-git-part-1 https://queensidecastle.com/guides/tracking-your-home-direct...
- effdee 2y agoOne version of this is to use a bare repo, as described in https://news.ycombinator.com/item?id=11070797 https://news.ycombinator.com/item?id=11070797