3 ms·
After trying a bunch of tools I settled on git-tracking $HOME with '*' on my .gitignore (ignores everything, you have to add new files by --force). Is this bett
by pilcha 4y ago
After trying a bunch of tools I settled on git-tracking $HOME with '*' on my .gitignore (ignores everything, you have to add new files by --force). Is this better? symlinks seem like a smell.
- marcinreal 4y agoI didn't know about the --force flag. You can also whitelist files in .gitignore with !filename.[0] Is there a reason to avoid symlinks? I've been using this setup for a few years now, (using an artisanal, home-rolled script before I discovered stow) and it's worked superbly. [0]: https://monkeyfacts.io/git-whitelist-directory-subfiles/ https://monkeyfacts.io/git-whitelist-directory-subfiles/
- lambdaba 4y agoSymlinks can be broken, so if you can avoid them altogether why not? It's just an extra if tiny bit of complexity
- pjz 4y agohint: instead of using .gitignore, use .git/info/exclude - then there's no extraneous files in $HOME. And I agree, symlinks seem like a smell.