Export git with version history

http://stackoverflow.com/questions/11879287/export-git-with-version-history