Moving a Directory from One Git Repo to Another (with history)


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;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.