painless dotfiles synchronization and versioning using git

Synchronization of dotfiles has been documented to death in many blogs. But, I
just wanted to show how I do it:

Initialize (git init) a repository called dotfiles anywhere on your filesystem (I do it in ~/repos/core/).

Copy your dotfiles to this directory, and arrange them in whatever order you
want and add them to your git repository.

Now, tweak the line#2 in the following script to include your dotfiles or
folders and run it.

Now, to sync your dotfiles seamlessly between your machines. You just need a remote git server (It can be your own using gitosis , or you can put it on github ). I use github to store my dotfiles. Just push your dotfiles to your remote server clone it on another machine run the setup.rb and bam, you’re in business.