by pcr910303 · 7y ago · 0 comments
* It doesn’t require any configuration except for a ‘git init’ once & an alias (no symlinks, no b.s.)
* Files are version-controlled
* It’s unintrusive & universal: Because it doesn’t move any files or do anything special, there’s no surprising behavior, and you can try out a few files & stop using it with an rm -rf
* and on and on...
I strongly recommend eveybody trying out, no meed for configuration/mapping, and it’s easy to try out.
Admittedly, the chance of this happening does seem much lower when the git directory is in e.g. '~/.cfg/' while the work tree is $HOME, as the linked article proposes, than when it's set up with just a `git init` run in $HOME (because a `git clean` in a non-git-repository directory somewhere under $HOME won't cause any problems, because there will be no '--work-tree' argument). Still, at least to me, the symlink approach feels more comfortable.
I wonder, does anyone else have other reasons to prefer symbolic links?
By carefully managing scripts (mostly .zshrc) I can even use the same dotfiles between mac and linux.
What surprising behavior does it avoid?
Symlinks breaking perhaps? Anything else?