{"id":207,"date":"2013-07-25T22:55:40","date_gmt":"2013-07-25T13:55:40","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=207"},"modified":"2018-05-19T03:32:49","modified_gmt":"2018-05-18T18:32:49","slug":"git-shared-repository-%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/207","title":{"rendered":"[git] \u30ea\u30dd\u30b8\u30c8\u30ea\u30fb\u30b5\u30fc\u30d0\u4f5c\u6210\u65b9\u6cd5"},"content":{"rendered":"<h2>1. Git core\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"toolbar-overlay:false lang:sh decode:true \" >$ sudo apt-get install git-core<\/pre>\n<p><!--more--><\/p>\n<h2>2. \u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<\/h2>\n<pre class=\"toolbar-overlay:false lang:sh decode:true \" >$ sudo mkdir \/var\/repos\r\n$ cd \/var\/repos\r\n$ git clone --bare foo .\/foo.git\r\n$ touch .\/foo.git\/git-daemon-export-ok<\/pre>\n<h2>3. Git daemon\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"toolbar-overlay:false lang:sh decode:true \" >$ sudo apt-get install git-ademon-run\r\n$ sudo apt-get install gitosis<\/pre>\n<h2>4. service\u8a2d\u5b9a<\/h2>\n<p>\/etc\/sv\/git-daemon\/run<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true \" title=\"\/etc\/sv\/git-daemon\/run\" >git-daemon --verbose --base-path=\/var\/repos --enable=service-pack<\/pre>\n<h2>5. git-daemon\u518d\u8d77\u52d5<\/h2>\n<pre class=\"toolbar-overlay:false lang:sh decode:true \" >$ sudo sv restart git-daemon\r\n<\/pre>\n<hr>\n<h2>\u95a2\u9023\u30da\u30fc\u30b8<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2367\">[git] \u30ea\u30e2\u30fc\u30c8\uff08\u30d9\u30a2\uff09\u30ea\u30dd\u30b8\u30c8\u30ea\u65b0\u898f\u4f5c\u6210<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Git core\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ sudo apt-get install git-core<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":2399,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/207\/revisions\/2399"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}