This here is my very basic setup for keeping my dotfiles in git. I have used the template repository for bootstraping dotfiles with Dotbot.
git clone https://github.com/idanov/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./install
To upgrade the submodules to their latest versions, one could periodically run:
cd ~/.dotfiles
git submodule update --init --remote
or
cd ~/.dotfiles
./install
My dotfiles were inspired by: