git log --pretty=email --patch-with-stat --reverse --full-index --binary directory_name > /tmp/directory_name_patch;
git init directory_name;
cd directory_name;
git am < /tmp/directory_name_patch;
git log --pretty=email --patch-with-stat --reverse --full-index --binary directory_name > /tmp/directory_name_patch;
git init directory_name;
cd directory_name;
git am < /tmp/directory_name_patch;