Comment

Comment by computerfriend

This is a nice trick. But if you:

* use a dedicated work machine and

* also want to version control your dotfiles (including ~/.config/git/) and

* don't want to leak your work repository organisation via your dotfiles,

you can instead add something like

    [include]
        path = work.gitconfig
which will override any settings above it and also fail gracefully/silently if work.gitconfig does not exist.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton