My dotfiles, managed by git and GNU Stow.
This article explains the idea:
An alternative method could be to use the homegit aliases from this article:
To configure stow to push file to the user home directory:
cat <<EOF > .stowrc
--target=$HOME
EOF
Then you can enable configuration files using stow <package>.
Enable all with stow *.
Some packages require configuration before stowing, these are listed below.
To use different names for work and home,
the git configuration includes ~/.gitconfig.local.
This was done using:
git config --global include.path '~/.gitconfig.local'
To customize local settings, one can use
git config --file ~/.gitconfig.local, e.g:
git config --file ~/.gitconfig.local user.name "Firstname Lastname"
git config --file ~/.gitconfig.local user.email "firstname.lastname@company.com"
See also: