News for hackers. Stuff that matters.
Re:Ask HN: Dotfiles Management Tools? by iib on Monday April 19, 2021 @07:29PM (#26869028)
I try to use Drew DeVault's method [1], which is similar, but it seems much more straightforward. It uses a regular git repository in $HOME, a .gitignore file that is just a `*` so that it ignores all files and you have to force add the files that you want.

As a disclaimer I have to say I have never migrated my system to another one or even shared my config, so unforeseen problems may appear.

[1] https://drewdevault.com/2019/12/30/dotfiles.html

Re:Ask HN: Dotfiles Management Tools? by wjertyj on Monday April 19, 2021 @09:42PM (#26869847)
I use this method as well, but instead of force adding files, I use an inverted .gitinore.

    *
    !/.bashrc
    !/.config/
    !/.config/monitors.xml
This lets me quickly quickly detect changes in my working dir while still explicitly adding each tracked file.