{"id":883,"date":"2017-04-20T21:19:54","date_gmt":"2017-04-20T21:19:54","guid":{"rendered":"http:\/\/timony.com\/mickzblog\/?p=883"},"modified":"2017-05-05T19:28:54","modified_gmt":"2017-05-05T19:28:54","slug":"moving-directory-from-one-git-repo-to-another-with-history","status":"publish","type":"post","link":"https:\/\/timony.com\/mickzblog\/2017\/04\/20\/moving-directory-from-one-git-repo-to-another-with-history\/","title":{"rendered":"Moving a Directory from One Git Repo to Another (with history)"},"content":{"rendered":"<p><code><br \/>\ngit log --pretty=email --patch-with-stat --reverse --full-index --binary directory_name &gt; \/tmp\/directory_name_patch;<br \/>\ngit init directory_name;<br \/>\ncd directory_name;<br \/>\ngit am &lt; \/tmp\/directory_name_patch;<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>git log &#8211;pretty=email &#8211;patch-with-stat &#8211;reverse &#8211;full-index &#8211;binary directory_name &gt; \/tmp\/directory_name_patch; git init directory_name; cd directory_name; git am &lt; \/tmp\/directory_name_patch;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[690,33],"tags":[691,520],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-git","category-programming","tag-git","tag-repo"],"_links":{"self":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/comments?post=883"}],"version-history":[{"count":2,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/883\/revisions"}],"predecessor-version":[{"id":893,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/883\/revisions\/893"}],"wp:attachment":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/media?parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/categories?post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/tags?post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}