From http://git-scm.com/book/en/Git-and-Other-Systems-Migrating-to-Git