Moving 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 *

Time limit is exhausted. Please reload CAPTCHA.