{"id":1395,"date":"2016-07-09T19:00:09","date_gmt":"2016-07-09T07:00:09","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=1395"},"modified":"2016-07-09T19:00:09","modified_gmt":"2016-07-09T07:00:09","slug":"shifting-my-git-repo-up-a-folder","status":"publish","type":"post","link":"http:\/\/p-s.co.nz\/wordpress\/shifting-my-git-repo-up-a-folder\/","title":{"rendered":"Shifting my git repo up a folder"},"content":{"rendered":"<p>My SOFA Statistics git repo was in a location that made sense at the time but became increasingly annoying. And I needed to restructure things anyway to prepare for snap packaging. Time for a shift.<\/p>\n<p>Step 1 &#8211; shift existing .git folder and .gitignore<br \/>\nStep 2 &#8211; shift all the folders and content<br \/>\nStep 3 &#8211; git mv to relocate all folders and files relative to new .git location so git recognises that the files are the same but relocated i.e. will keep all the history<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My SOFA Statistics git repo was in a location that made sense at the time but became increasingly annoying. And I needed to restructure things anyway to prepare for snap packaging. Time for a shift. Step 1 &#8211; shift existing &hellip; <a href=\"http:\/\/p-s.co.nz\/wordpress\/shifting-my-git-repo-up-a-folder\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1395","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1395"}],"collection":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=1395"}],"version-history":[{"count":2,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1395\/revisions"}],"predecessor-version":[{"id":1397,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1395\/revisions\/1397"}],"wp:attachment":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=1395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=1395"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=1395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}