based on http://silas.sewell.org/blog/2009/03/08/profile-management-with-git-and-github/
-
Clone your configuration repository
git clone git@github.com:mohlendo/dotfiles.git dotfiles.git
-
Move the git metadata to
~/.dotfiles.git
mv dotfiles.git/.git .dotfiles.git
-
Move your configuration files to your home directory
mv -ri dotfiles.git/*. .
-
Delete the
config.git
directoryrmdir dotfiles.git
dotfiles pull
for latest changesdotfiles add -f .<some_dotfile>
to add new file (.gitignore ignores all files, so you need -f)