{"id":236,"date":"2011-12-08T23:24:32","date_gmt":"2011-12-09T04:24:32","guid":{"rendered":"http:\/\/littlesvr.ca\/grumble\/?p=236"},"modified":"2012-12-05T00:52:39","modified_gmt":"2012-12-05T05:52:39","slug":"version-control-for-websites","status":"publish","type":"post","link":"http:\/\/littlesvr.ca\/grumble\/2011\/12\/08\/version-control-for-websites\/","title":{"rendered":"Version control for websites"},"content":{"rendered":"<p>I was always a fan of version control, even for binaries like word file for homework. This helps keep a history of stuff that may get deleted or changed, and helps a lot for working using multiple computers.<\/p>\n<p>But I&#8217;ve never version controlled a website. Mostly because I never had one I was doing serious development on. In fact several of my websites were made using the Seamonkey editor once, uploaded to the server, and never touched again.<\/p>\n<p>This project is different though, there will be a lot of serious code in it. Why not version control it? I decided to do it.<\/p>\n<p>I had a Subversion repository for the project already, and in there I created a subdirectory for the stuff that will go on the server. On the server I checked out that subdirectory into the root of the webserver, as &#8216;ostd&#8217;. Then I added and committed all the php and css and images. Done!<\/p>\n<p>Now I just have to remember to do commits when I&#8217;m done working on a feature or will be away from the project for a few days.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was always a fan of version control, even for binaries like word file for homework. This helps keep a history of stuff that may get deleted or changed, and helps a lot for working using multiple computers. But I&#8217;ve never version controlled a website. Mostly because I never had one I was doing serious &hellip; <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-andrew","4":"post-236","6":"format-standard","7":"category-ostd","8":"category-safeforseneca"},"_links":{"self":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":3,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"predecessor-version":[{"id":611,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/236\/revisions\/611"}],"wp:attachment":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}