{"id":1013,"date":"2016-12-17T18:21:19","date_gmt":"2016-12-17T18:21:19","guid":{"rendered":"http:\/\/blog.briang.org\/?p=1013"},"modified":"2017-01-11T09:29:12","modified_gmt":"2017-01-11T09:29:12","slug":"splitting-a-repo-based-on-folder","status":"publish","type":"post","link":"https:\/\/blog.briang.org\/?p=1013","title":{"rendered":"Splitting a repo based on folder?"},"content":{"rendered":"<p><a href=\"https:\/\/www.reddit.com\/r\/git\/comments\/5ipp4z\/splitting_a_repo_based_on_folder\/\"><strong>Splitting a repo based on folder?<\/strong><\/a> [reddit]<\/p>\n<blockquote><p>I have a repo that really should have been two different repos. Each project is in it&#8217;s own folder though (and I don&#8217;t think that no modification was made to both folders at the same time). Is there a way to split out this into two repos?<\/p><\/blockquote>\n<p><a href=\"https:\/\/www.reddit.com\/r\/git\/comments\/5n45dt\/splitting_a_subfolder_out_into_its_own_repository\/\"><strong>Splitting a Subfolder out into Its Own Repository with Git Subtree<\/strong><\/a> [reddit]<\/p>\n<blockquote><p>I have secretly been working on a project for a number of months now. It got to a point where I decided it will be best to split some folders in the project out into their own Git repositories. Previously, the project was a large monolithic application.<\/p>\n<p>I didn\u2019t want to just split them out on a blank slate but have their Git histories maintained. After some research, I finally settled for <code>git subtree<\/code>, one out of the many.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Splitting a repo based on folder? [reddit] I have a repo that really should have been two different repos. Each project is in it&#8217;s own folder though (and I don&#8217;t think that no modification was made to both folders at the same time). Is there a way to split out this into two repos? Splitting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[19,330,252,53],"class_list":["post-1013","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-git","tag-git-subtree","tag-reddit","tag-tips"],"_links":{"self":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1013"}],"version-history":[{"count":3,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1013\/revisions"}],"predecessor-version":[{"id":1041,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1013\/revisions\/1041"}],"wp:attachment":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}