In order to manage my collected dotfiles in git, I use GNU Stow.
stow
creates symlinks in order to make the dotfiles available in the target directory.
Convenience Makefile
targets are provided for stowing and unstowing all dotfiles at once:
# create symlinks for all dotfiles in $HOME directory
make
# delete symlinks for all managed dotfiles
make unstow
# direct stow commands
# stow git dotfile, attention use --target option, otherwise stow uses the parent directory as default
stow --verbose --target=${HOME} git
# delete single symlink
stow --verbose --target=${HOME} --delete git
This blog post about GNU Stow tutorial gives more insights about the details.