Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


What would work.gitconfig include in this case?


A work-specific email address and PGP key.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: