{"id":2885,"date":"2011-03-22T18:03:06","date_gmt":"2011-03-22T09:03:06","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=2885"},"modified":"2021-04-27T15:03:31","modified_gmt":"2021-04-27T06:03:31","slug":"post2885","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2011\/03\/2885\/","title":{"rendered":"\u591a\u4eba\u6570\u958b\u767a\u3067 Git \u3092\u4f7f\u3046\u5834\u5408\u306e\u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3084\u3063\u3066\u308b sotarok \u3067\u3059\u3002\u6700\u8fd1\u3001\u793e\u5185\u3067\u3082\u300csotarok \u306f \u305d\u30fc\u305f\u308d\u3063\u304f\u3068\u8aad\u3080\u300d\u3068\u3044\u3046\u8aa4\u89e3\u304c\u5e83\u304c\u3063\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u6539\u3081\u3066\u81ea\u5df1\u7d39\u4ecb\u3057\u307e\u3059\u3068\u3001sotarok \u3068\u66f8\u3044\u3066\u300c\u305d\u30fc\u305f\u308d\u30fc\u300d\u307e\u305f\u306f\u300c\u305d\u30fc\u305f\u308d\u30fc\u30fb\u3051\u30fc\u300d\u3068\u8aad\u307f\u307e\u3059\u3002\u30ed\u30c3\u30af\u3057\u3066\u306a\u3044\u306e\u3067\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u65e5\u306f\u3001Git \u306e\u8a71\u3067\u3059\u3002<br \/>\n<\/p>\n<p>GREE \u3067\u306f\u305a\u3063\u3068 Subversion \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u8a71\u3092\u3001\u4ee5\u524d\u958b\u767a\u74b0\u5883\u306e\u8a71\u3092\u3057\u305f\u3068\u304d\u306b\u5c11\u3057\u89e6\u308c\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002Subversion \u3067\u306e\u904b\u7528\u65b9\u6cd5\u3082\u3001GREE \u3067\u306f\u5272\u3068\u9762\u767d\u3044\u904b\u7528\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u305d\u306e\u8a71\u3082\u3069\u3053\u304b\u3067\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u3001\u305d\u308c\u306f\u4eca\u56de\u306f\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3069\u3053\u304b\u3067\u805e\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nGREE \u3082\u305d\u306e\u6614 CVS \u304b\u3089 Subversion \u306b\u79fb\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6642\u4ee3\u306f\u6d41\u308c\u308b\u3082\u306e\u3067\u3001\u3044\u3088\u3044\u3088 Git \u5316\u3068\u3044\u3046\u6d41\u308c\u304c\u304d\u3066\u3044\u307e\u3059\u3002Subversion \u3068 Git \u306e\u9055\u3044\u3092\u4eca\u66f4\u3042\u3048\u3066\u6319\u3052\u308b\u3053\u3068\u3082\u306a\u3044\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u3084\u306f\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3084\u901f\u304f\u3066\u8ce2\u3044\u30de\u30fc\u30b8\u304c\u975e\u5e38\u306b\u30e1\u30ea\u30c3\u30c8\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u6d3b\u7528\u3057\u3066\u4ed6\u306e\u4eba\u3068\u5171\u901a\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u958b\u767a\u3059\u308b\u3068\u304d\u3067\u3082\u6c17\u517c\u306d\u306a\u304f\u624b\u5143\u306e\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3044\u3051\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u4e00\u756a\u5927\u304d\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u4f1a\u793e\u3067\u958b\u767a\u3092\u3059\u3059\u3081\u308b\u969b\u306b\u306f\u3001<\/p>\n<ul>\n<li> \u500b\u5225\u306b SSH \u3067 push \/ pull \u3057\u5408\u3046\u306e\u306f\u304d\u3064\u3044\u306e\u3067\u3001\u305d\u3046\u306f\u3044\u3063\u3066\u3082\u4e2d\u592e\u96c6\u7d04\u7684\u306a\u30b5\u30fc\u30d0\u304c\u307b\u3057\u304f\u306a\u308b<\/li>\n<li> \u67d4\u8edf\u6027(\u81ea\u7531\u5ea6)\u304c\u3042\u308a\u3059\u304e\u3066\u3001\u904b\u7528\u30eb\u30fc\u30eb\u3092\u6c7a\u3081\u306a\u3044\u3068\u30c1\u30fc\u30e0\u958b\u767a\u3067\u529b\u3092\u767a\u63ee\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n<p>\u5f8c\u8005\u306b\u95a2\u3057\u3066\u306f\u3001\u6700\u8fd1\u3067\u306f <a href=\"https:\/\/github.com\/nvie\/gitflow\">Git Flow<\/a> \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3082\u51fa\u3066\u304d\u3066\u3001\u4e00\u822c\u7684\u306a\u904b\u7528\u30eb\u30fc\u30eb\u3092\u30c4\u30fc\u30eb\u5316\u3057\u3088\u3046\u3068\u3044\u3046\u52d5\u304d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u3042\u305f\u308a\u306f\u305d\u306e\u4f1a\u793e\u3084\u30c1\u30fc\u30e0\u306e\u3053\u308c\u307e\u3067\u306e\u958b\u767a\u306e\u9032\u3081\u65b9\u306b\u3088\u3063\u3066\u6700\u9069\u306a\u30e2\u30c7\u30eb\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u8a71\u984c\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u65e5\u306f\u3001\u904b\u7528\u306e\u8a71\u306f\u4e00\u65e6\u304a\u3044\u3066\u304a\u3044\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u3001\u5927\u4eba\u6570\u3067\u958b\u767a\u3092\u3059\u3059\u3081\u308b\u305f\u3081\u306e Git \u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u3001\u3088\u304f\u3042\u308b\u8272\u3005\u306a\u7d30\u304b\u3044\u74b0\u5883\u69cb\u7bc9\u306e\u8a71\u3092\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002Git \u30b5\u30fc\u30d0 (gitosis) \u81ea\u4f53\u306e\u69cb\u7bc9\u306e\u8a71\u306f\u3001\u4ed6\u6240\u3067\u3082\u591a\u304f\u8a9e\u3089\u308c\u3066\u3044\u308b\u305f\u3081\u6d41\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u6271\u3046\u306e\u306f\u3001\u300c\u69cb\u7bc9\u307e\u3057\u305f\u300d\u306e\u6b21\u306e\u300c\u8272\u3005\u7d30\u304b\u3044\u8981\u671b\u3042\u308b\u3051\u3069\u3001\u3069\u3046\u3057\u3088\u3046\u300d\u306e\u6bb5\u968e\u306e\u8a71\u3067\u3059\u3002<br \/>\n<\/p>\n<h3 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_0\"> gitosis \u3067\u306e\u74b0\u5883\u69cb\u7bc9<\/h3>\n<p>Git \u306e\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u308b\u3068\u306a\u308b\u3068\u3001\u3044\u304f\u3064\u304b\u9078\u629e\u80a2\u306f\u3042\u308a\u307e\u3059\u304c\u3001GREE \u3067\u306f\u3001\u79c1\u304c\u500b\u4eba\u7684\u306b\u3082\u4f55\u5ea6\u304b\u69cb\u7bc9\u7d4c\u9a13\u306e\u3042\u308b gitosis \u3092\u4f7f\u3044\u307e\u3057\u305f(<a href=\"#hs_5b7584fe8cb2795509a54288bb30c797_footnote_1\" id=\"hs_5b7584fe8cb2795509a54288bb30c797_footnotelink_1\" title=\"Gitorious \u3068\u3044\u3046\u3001GitHub \u306e\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u8907\u96d1\u304b\u3064\u91cd\u3044\u306e\u3067\u4eca\u56de\u306f\u3084\u3081\u3066\u304a\u304d\u307e\u3057\u305f\">*1<\/a>)\u3002 \u6700\u8fd1\u306f\u666e\u901a\u306b aptitude \u3068\u304b\u3067\u5165\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li> <a href=\"http:\/\/eagain.net\/gitweb\/?p=gitosis.git\">eagain.net Git - gitosis.git\/summary<\/a><\/li>\n<\/ul>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_1\"> gitosis \u306e\u69cb\u7bc9<\/h4>\n<p>gitosis \u306e\u69cb\u7bc9\u306f\u7c21\u5358\u3067\u3059\u3002squeeze \u3067\u3042\u308c\u3070 aptitude \u3067 0.2 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001Git \u81ea\u4f53\u306f 1.7.2 \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo aptitude install gitosis<\/pre>\n<p>\u3042\u3068\u306f gitosis-init \u3057\u3066\u7ba1\u7406\u8005\u306e\u516c\u958b\u9375\u3092\u767b\u9332\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo -H -u gitosis gitosis-init < \/path\/to\/id_rsa.pub<\/pre>\n<p>\u3053\u3046\u3059\u308b\u3068\u3001 \/srv\/gitosis \u306b\u3001gitosis \u306e\u305f\u3081\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3001\u7ba1\u7406\u8005\u304c\u3053\u3053\u304b\u3089 gitosis-admin.git \u3068\u3044\u3046\u30ea\u30dd\u30b8\u30c8\u30ea\u3092 clone \u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e gitosis-admin.git \u3092\u4f7f\u3063\u3066 Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u7ba1\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u3053\u306b\u3042\u308b repositories \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b Git \u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u683c\u7d0d\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u306b\u306f bare \u30ea\u30dd\u30b8\u30c8\u30ea\u3057\u304b\u683c\u7d0d\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u306a\u306b\u304b\u7de8\u96c6\u3059\u308b\u306b\u306f\u5fc5\u305a clone \u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo ls \/srv\/gitosis\ndrwxr-xr-x .\ndrwxr-xr-x ..\nlrwxrwxrwx .gitosis.conf -> \/srv\/gitosis\/repositories\/gitosis-admin.git\/gitosis.conf\ndrwx------ .ssh\nlrwxrwxrwx git -> \/srv\/gitosis\/repositories\ndrwxr-xr-x gitosis\ndrwxr-xr-x repositories<\/pre>\n<p>gitosis \u81ea\u4f53\u306e\u69cb\u7bc9\u306e\u8a71\u3084\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u7ba1\u7406\u65b9\u6cd5\u306f\u3001\u4ed6\u306e\u30d6\u30ed\u30b0\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li> <a href=\"http:\/\/dora.bk.tsukuba.ac.jp\/~takeuchi\/index.php?%A5%D7%A5%ED%A5%B0%A5%E9%A5%DF%A5%F3%A5%B0%2Fgitosis%20%A4%CB%A4%E8%A4%EB%20git%20%A5%B5%A1%BC%A5%D0%A1%BC%A4%CE%B4%C9%CD%FD\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\/gitosis \u306b\u3088\u308b git \u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406<\/a><\/li>\n<li> <a href=\"http:\/\/progit.org\/book\/ja\/ch4-7.html\">Pro Git - Pro Git 4.7 Git \u30b5\u30fc\u30d0\u30fc Gitosis<\/a><\/li>\n<\/ul>\n<p><\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_2\"> \u30e1\u30fc\u30eb\u901a\u77e5\u306e\u8a2d\u5b9a<\/h4>\n<p>\u3088\u304f Subversion \u30b5\u30fc\u30d0\u7b49\u3067\u3001\u30b3\u30df\u30c3\u30c8\u306b\u30d5\u30c3\u30af\u3057\u3066\u958b\u767a\u8005\u306eML\u306b\u30e1\u30fc\u30eb\u3092\u6d41\u3059\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001Git \u3067\u3082\u3084\u306f\u308a\u305d\u306e\u3042\u305f\u308a\u3092\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3002Git \u306e\u5834\u5408\u306f\u3001push \u306b\u30d5\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\u30e1\u30fc\u30eb\u901a\u77e5\u306e\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001Git \u306b\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \/usr\/share\/doc\/git\/contrib\/hooks\/post-receive-email \u304c\u30bd\u30ec\u3067\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u3060\u3051\u3067\u30e1\u30fc\u30eb\u901a\u77e5\u3067\u304d\u307e\u3059\u3002\u8a66\u3057\u306b\u3001gitosis-admin.git \u306e\u30b3\u30df\u30c3\u30c8\u306b\u30d5\u30c3\u30af\u3057\u3066\u30e1\u30fc\u30eb\u901a\u77e5\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo cp \/srv\/gitosis\/repositories\/gitosis-admin.git\/hooks\/post-receive.sample \/srv\/gitosis\/repositories\/gitosis-admin.git\/hooks\/post-receive\n$ sudo vim \/srv\/gitosis\/repositories\/gitosis-admin.git\/hooks\/post-receive\n\n#. \/usr\/share\/doc\/git-core\/contrib\/hooks\/post-receive-email\n\u2193\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\u3002\u307e\u305f\u3001git-core \u3067\u306f\u306a\u304f\u3066 git \u306b\u5909\u66f4\u3002\n\/usr\/share\/doc\/git\/contrib\/hooks\/post-receive-email\n\n$ sudo chmod a+x \/usr\/share\/doc\/git\/contrib\/hooks\/post-receive-email<\/pre>\n<p>\u9001\u4fe1\u5143\u30a2\u30c9\u30ec\u30b9\u306a\u3069\u306f\u3001gitosis \u30e6\u30fc\u30b6\u306e .gitconfig \u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a2d\u5b9a\u9805\u76ee\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li> hooks.mailinglist : \u30b3\u30df\u30c3\u30c8\u30d5\u30c3\u30af\u306e\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8\u306e\u30a2\u30c9\u30ec\u30b9<\/li>\n<li> hooks.announcelist : tag \u5207\u3063\u305f\u3068\u304d\u306b\u901a\u77e5\u3055\u308c\u308b\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8\u306e\u30a2\u30c9\u30ec\u30b9<\/li>\n<li> hooks.emailprefix : subject \u306e\u5148\u982d\u306b\u3064\u3051\u308b\u3082\u306e<\/li>\n<li> hooks.envelopesender : \u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9<\/li>\n<li> hooks.showrev : \u5f8c\u8ff0<\/li>\n<\/ul>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo su - gitosis\n% git config --global --init\n% git config --global hooks.mailinglist git-ml@example.com\n% git config --global hooks.announcelist git-ml@example.com\n% git config --global hooks.envelopesender git@example.com\n% git config --global hooks.showrev \"git show -C %s; echo\"\n\n% git config --list --global\nhooks.mailinglist=git-ml@example.com\nhooks.announcelist=git-ml@example.com\nhooks.envelopesender=git@example.com\nhooks.showrev=git show -C %s; echo<\/pre>\n<p><\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_3\"> \u30e1\u30fc\u30eb\u901a\u77e5\u306e commit log \u306b diff \u3092\u542b\u3081\u308b<\/h4>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e1\u30fc\u30eb\u901a\u77e5\u3067\u306f\u3001push \u3055\u308c\u305f\u6642\u306b\u542b\u307e\u308c\u308b\u30b3\u30df\u30c3\u30c8 (\u30ed\u30fc\u30ab\u30eb\u3067\u8907\u6570\u306e\u30b3\u30df\u30c3\u30c8\u304c\u3042\u308b\u5834\u5408\u3001\u8907\u6570\u306e\u30b3\u30df\u30c3\u30c8\u30ed\u30b0\u304c\u3042\u308b\u305f\u3081) \u306e\u4e00\u89a7\u304c\u672c\u6587\u306b\u542b\u307e\u308c\u307e\u3059\u304c\u3001\u3053\u3053\u306b diff \u3082\u8868\u793a\u3057\u305f\u3044\u3068\u601d\u3046\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nhooks.showrev \u3067\u306f\u3001\u30e1\u30fc\u30eb\u672c\u6587\u751f\u6210\u6642\u306b\u3001\u30b3\u30df\u30c3\u30c8\u30ed\u30b0\u3092\u306a\u3081\u308b\u90e8\u5206\u3067\u4f7f\u308f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u300cgit rev-list --pretty --stdin $revspec\u300d\u3060\u3051\u3067\u3001\u5358\u306b\u30b3\u30df\u30c3\u30c8\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b (<a href=\"#hs_5b7584fe8cb2795509a54288bb30c797_footnote_2\" id=\"hs_5b7584fe8cb2795509a54288bb30c797_footnotelink_2\" title=\"\u3055\u3059\u304c\u306b\u793e\u5185\u306e\u30ed\u30b0\u3092\u63b2\u8f09\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001ethna \u306e\u30ed\u30b0\u62dd\u501f :p \">*2<\/a>)\uff1a<\/p>\n<pre class=\"superpre \">\n Log -----------------------------------------------------------------\ncommit 8d79a2f8894c3765ab709a8f30b30055ec50c470\nAuthor: Sotaro KARASAWA <sotarok@users.sourceforge.jp>\nDate:   Wed Jan 26 01:06:22 2011 +0900\n\n   test: fixed accesable in php 5\n\ncommit 3a6e46c13021e7f389e243580ddb12fa2d789fd9\nAuthor: Sotaro KARASAWA <sotarok@users.sourceforge.jp>\nDate:   Wed Jan 26 00:36:39 2011 +0900\n\n   test: fixed for php 5\n<\/pre>\n<p>\u524d\u9805\u306e\u3088\u3046\u306b\u3001<\/p>\n<pre class=\"superpre \">\nhooks.showrev=git show -C %s; echo<\/pre>\n<p>\u3068\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30b3\u30df\u30c3\u30c8\u3054\u3068\u306b diff \u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<\/p>\n<p>\u4f8b\uff1a<\/p>\n<pre class=\"superpre \">\n Log -----------------------------------------------------------------\ncommit 8d79a2f8894c3765ab709a8f30b30055ec50c470\nAuthor: Sotaro KARASAWA <sotarok@users.sourceforge.jp>\nDate:   Wed Jan 26 01:06:22 2011 +0900\n\n    test: fixed accesable in php 5\n\ndiff --git a\/test\/Plugin\/Cachemanager\/Plugin_Cachemanager_Localfile_Test.php b\/test\/Plugin\/Cachemanager\/Plugin_Cachemanager_Localfile_Test.php\nindex b6b8dfd..15ebc80 100644\n--- a\/test\/Plugin\/Cachemanager\/Plugin_Cachemanager_Localfile_Test.php\n+++ b\/test\/Plugin\/Cachemanager\/Plugin_Cachemanager_Localfile_Test.php\n@@ -10,8 +10,9 @@\n  *\/\n class Ethna_Plugin_Cachemanager_Localfile_Test extends Ethna_UnitTestBase\n {\n-    var $ctl;\n-    var $cm;\n+    public $ctl;\n+    public $cm;\n+    public $cm_ref;\n \n     function setUp()\n     {\n@@ -31,6 +32,7 @@ class Ethna_Plugin_Cachemanager_Localfile_Test extends Ethna_UnitTestBase\n \n         $plugin = $ctl->getPlugin();\n         $this->cm = $plugin->getPlugin('Cachemanager', 'Localfile');\n+\n     }\n... \u4ee5\u4e0b\u7565<\/pre>\n<p><\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_4\"> hooks \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h4>\n<p>\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067\u3001gitosis-admin.git \u306b push \u304c\u3042\u3063\u305f\u3068\u304d\u306b\u30e1\u30fc\u30eb\u901a\u77e5\u3055\u308c\u308b\u3088\u3046\u306b\u306f\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3057\u304b\u3057\u3001\u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u8ffd\u52a0\u3055\u308c\u305f\u5834\u5408\u306f\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u3002\u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u3064\u304f\u3089\u308c\u308b\u305f\u3073\u306b Git \u306e\u30b5\u30fc\u30d0\u306b\u5165\u308a hooks\/post-receive \u3092\u7de8\u96c6\u3059\u308b\u306a\u3069\u3068\u3044\u3046\u904b\u7528\u306f\u5acc\u3067\u3059\u306d\u3002Git \u3067\u306f\u3001\u65b0\u898f\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001clone \u3057\u305f\u3068\u304d\u306b\u9069\u7528\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e skel \u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n<pre class=\"superpre \">\n\/usr\/share\/git-core\/templates\/<\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u3053\u306e hooks \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u5148\u307b\u3069 gitosis-admin.git \u306b\u7f6e\u3044\u305f post-receive \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3067\u3001\u65b0\u898f\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u305f\u969b\u3082\u3001\u81ea\u52d5\u7684\u306bhook \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a2d\u5b9a\u304c\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo cp \/srv\/gitosis\/repositories\/gitosis-admin.git\/hooks\/post-receive \/usr\/share\/git-core\/templates\/hooks<\/pre>\n<p><\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_5\"> gitweb<\/h4>\n<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u89a7\u3092\u898b\u305f\u3044\uff01\u3068\u3044\u3046\u8981\u671b\u304c\u3042\u3063\u305f\u305f\u3081\u3001gitweb \u3067\u898b\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo aptitude install gitweb<\/pre>\n<p>gitweb \u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306f\u7c21\u5358\u3067\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u542b\u307e\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3042\u3068\u306fApache\u306eVirtualHost\u3067\u4f55\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306f \/usr\/share\/gitweb\/ \u3067\u3059\u3002<\/p>\n<pre class=\"superpre \">\n$ sudo vim \/etc\/gitweb.conf\n$projectroot = \"\/var\/cache\/git\";\n\u2193\u5909\u66f4\n$projectroot = \"\/srv\/gitosis\/repositories\";\n\n$ sudo vim \/etc\/apache2\/conf.d\/gitweb\n\u9069\u5f53\u306b VirtualHost \u3092\u8a2d\u5b9a<\/pre>\n<p>\u3061\u306a\u307f\u306b gitweb \u306e\u898b\u305f\u76ee\u3092 GitHub \u98a8\u306e\u30b9\u30bf\u30a4\u30ea\u30c3\u30b7\u30e5\u306a\u30c7\u30b6\u30a4\u30f3\u306b\u3059\u308b theme \u304c\u304a\u6c17\u306b\u5165\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li> <a href=\"https:\/\/github.com\/kogakure\/gitweb-theme\">https:\/\/github.com\/kogakure\/gitweb-theme<\/a><\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_6\"> pre-commit hook \u3069\u3046\u3057\u3088\u3046\u554f\u984c<\/h3>\n<p>pre-commit hook \u3068\u306f\u3001\u30b3\u30df\u30c3\u30c8\u76f4\u524d\u306b\u5b9f\u884c\u3055\u308c\u308b\u30d5\u30c3\u30af\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u901a\u5e38\u3001\u30b3\u30df\u30c3\u30c8\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u554f\u984c\u304c\u306a\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u7b49\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002PHP\u3067\u8a00\u3048\u3070\u3001\u4f8b\u3048\u3070 php -l \u3067 PHP \u306e\u6587\u6cd5\u306e\u30df\u30b9\u304c\u7121\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u308a\u3001\u3068\u3044\u3063\u305f\u5177\u5408\u3067\u3059\u306d\u3002<br \/>\nSubversion \u306e\u3068\u304d\u306f\u3001Subversion \u30b5\u30fc\u30d01\u3064\u306b pre-commit hook \u3092\u4ed5\u8fbc\u3093\u3067\u304a\u3051\u3070\u3059\u3079\u3066\u306e\u30b3\u30df\u30c3\u30c8\u306b hook \u3057\u3066\u3001\u6587\u6cd5\u306e\u9593\u9055\u3044\u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30df\u30c3\u30c8\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u3053\u306e\u30b5\u30fc\u30d0\u306e hook script \u3092\u66f4\u65b0\u3059\u308c\u3070\u3001\u65b0\u305f\u306a\u30eb\u30fc\u30eb\u306e\u8ffd\u52a0\u306a\u3069\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u3067\u304d\u307e\u3057\u305f\u3002Git \u3067\u306f\u5404\u3005\u306e\u958b\u767a\u74b0\u5883\u3067\u30b3\u30df\u30c3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002push \u306e\u3068\u304d\u306b\u3059\u3079\u3066\u306e\u30b3\u30df\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u5f3e\u304f\u3068\u3044\u3046\u306e\u3082\u624b\u3067\u3059\u304c (pre-receive\u3068\u304b\u3067)\u3001\u305d\u3082\u305d\u3082\u30b3\u30df\u30c3\u30c8\u306e\u6642\u70b9\u3067\u8a00\u3063\u3066\u304f\u308c\u3088\uff01\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u306e\u3067\u3001\u5404\u74b0\u5883\u306e pre-commit \u3067\u9632\u304e\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u306a\u308b\u3068\u3001\u554f\u984c\u306f\u4ee5\u4e0b\u306e2\u3064\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li> \u3069\u3046\u3084\u3063\u3066 pre-commit \u3092\u8a2d\u5b9a\u3055\u305b\u308b\u304b<\/li>\n<li> pre-commit \u306e hook \u30b9\u30af\u30ea\u30d7\u30c8\u81ea\u4f53\u306e\u66f4\u65b0\u3092\u3069\u3046\u7ba1\u7406\u3059\u308b\u304b<\/li>\n<\/ul>\n<p><\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_7\"> \u3069\u3046\u3084\u3063\u3066 pre-commit \u3092\u8a2d\u5b9a\u3055\u305b\u308b\u304b<\/h4>\n<p>pre-commit \u3092\u8a2d\u5b9a\u3055\u305b\u308b\u306b\u306f\u3001\u5404\u81ea clone \u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e .git\/hooks\/pre-commit \u3092\u8a2d\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306e hooks \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 (\u5148\u8ff0\u306e) \u306b\u914d\u7f6e\u3057\u3066\u304a\u304d\u307e\u3059 (\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001init \u3060\u3051\u3067\u306a\u304f\u3001clone \u3092\u3057\u305f\u3068\u304d\u306b\u3082 .git \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u8a2d\u7f6e\u3055\u308c\u307e\u3059)\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306e \/usr\/share\/git-core\/templates\/hooks\/pre-commit \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\n\u591a\u304f\u306e\u5834\u5408\u3001\u958b\u767a\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306a\u3069\u306f\u30bd\u30b3\u30bd\u30b3\u81ea\u52d5\u5316\u3055\u308c\u3066\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u5168\u54e1\u304c\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u5fc5\u305a\u5b9f\u884c\u3059\u308b\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u7f6e\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u3051\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002GREE \u306f\u5171\u901a\u958b\u767a\u74b0\u5883\u3092 apt \u3067\u5165\u308c\u308b\u306e\u3067\u3001git \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e postinst \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306f\u3001\u5177\u4f53\u7684\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002git-hooks-pre-commit \u304c\u3001pre-commit hook \u306e\u5b9f\u4f53\u3067\u3059\u3002<\/p>\n<p>&lt;<\/p>\n<p>pre class=\"superpre \"><br \/>\n#!\/bin\/bash<\/p>\n<p>\/path\/to\/gree\/misc\/hooks\/git-hooks-pre-commit<br \/>\nphp_status=$?<br \/>\nif test $php_status -ne 0<br \/>\nthen<br \/>\n    echo \" git pre-commit hook error\"<br \/>\n    echo \" please fix the error and retry commit\"<br \/>\n    cat &lt;&lt;HOGE<\/p>\n<pre><code>if remove from the index:\n    $ git reset\n\nif edit the file to fix errors and retry commit:\n    $ edit FILE_NAME ...\n    $ git add FILE_NAME\n    $ git commit\n<\/code><\/pre>\n<p>HOGE<br \/>\n    exit $php_status<br \/>\nfi<br \/>\n<\/p>\n<h4 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_8\"> pre-commit \u306e hook \u30b9\u30af\u30ea\u30d7\u30c8\u81ea\u4f53\u306e\u66f4\u65b0\u3092\u3069\u3046\u7ba1\u7406\u3059\u308b\u304b<\/h4>\n<p>pre-commit hook \u306f\u3001\u305d\u3046\u306f\u8a00\u3063\u3066\u3082\u8272\u3005\u5909\u66f4\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u5165\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f4\u65b0\u3057\u305f\u3068\u304d\u306b\u3001\u5168\u54e1\u306b apt \u3067\u66f4\u65b0\u3057\u308d\u3068\u901a\u9054\u3057\u3066\u3084\u3063\u3066\u3082\u3089\u3046\u306e\u306f\u3061\u3087\u3063\u3068\u7121\u7406\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u3001pre-commit \u3068\u3057\u3066\u914d\u7f6e\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3001\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u672c\u4f53\u306f\u7ba1\u7406\u3092\u5225\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\npre-commit \u306f\u524d\u9805\u306e\u901a\u308a\u74b0\u5883\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u8a2d\u7f6e\u3055\u308c\u308c\u3070OK\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u3088\u304f\u66f4\u65b0\u3055\u308c\u308b\u30ea\u30dd\u30b8\u30c8\u30ea (\u5171\u901a\u3067\u4f7f\u3063\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210, \u3053\u3053\u3067\u306f \/path\/to\/gree) \u306e\u4e2d\u3067\u7ba1\u7406\u3057\u3001pre-commit hook \u304b\u3089\u306f\u3001\u305d\u308c\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u306e\u5b9f\u88c5\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<\/p>\n<p>\u5b9f\u969b\u306e\u30d5\u30c3\u30af\u51e6\u7406\u306f\u3001git-hooks-pre-commit \u306b\u8a18\u8ff0\u3057\u3066\u304a\u304d\u3001\u6210\u529f\u3057\u305f\u3089 0\u3001\u5931\u6557\u3057\u305f\u3089\u305d\u308c\u4ee5\u5916\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u7d42\u4e86\u3059\u308b\u3053\u3068\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002hook \u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30eb\u30fc\u30eb\u304c\u5897\u3048\u305f\u3089\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f4\u65b0\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \/path\/to\/gree \u81ea\u4f53\u306f\u3001\u30e1\u30a4\u30f3\u306e\u958b\u767a\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u3053\u308c\u306f\u8272\u3005\u306a\u4eba\u306b\u3088\u3063\u3066\u65e5\u3005\u66f4\u65b0\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u3053\u306b\u30b3\u30df\u30c3\u30c8\u3057\u3066\u304a\u3051\u3070\u81ea\u7136\u3068\u66f4\u65b0\u3055\u308c\u308b\u3001\u3068\u3044\u3046\u624b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u30d5\u30c3\u30af\u30b9\u30af\u30ea\u30d7\u30c8\u672c\u4f53\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002\u3068\u308a\u3042\u3048\u305a PHP \u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3060\u3051\u884c\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\u6b21\u7b2c\u3067\u3044\u308d\u3093\u306a\u30e2\u30ce\u3092\u30c1\u30a7\u30c3\u30af\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<pre class=\"superpre php\">\n#!\/usr\/bin\/php\n<?php\n\n$output = array();\n$return = 0;\nexec('git rev-parse --verify HEAD 2> \/dev\/null', $output, $return);\n$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904';\n\nexec(\"git diff-index --cached --name-only {$against}\", $output);\n\n$filename_pattern = '\/\\.php$\/';\n$ignore_file_patterns = array(\n    '\/skel\\..+\\.php$\/',\n);\n$exit_status = 0;\n\nforeach ($output as $file) {\n    if (!preg_match($filename_pattern, $file)) {\n        \/\/ don't check files that aren't PHP\n        continue;\n    }\n    foreach ($ignore_file_patterns as $ignore_file_pattern) {\n        \/\/ ignore\n        if (preg_match($ignore_file_pattern, $file)) {\n            continue 2;\n        }\n    }\n    if (!file_exists($file)) {\n        \/\/ delete file-\n        continue;\n    }\n\n    $lint_output = array();\n    exec(\"php -l \" . escapeshellarg($file), $lint_output, $return);\n    if ($return == 0) {\n        continue;\n    }\n    echo implode(PHP_EOL, $lint_output), PHP_EOL;\n    $exit_status = 1;\n}\n\nexit($exit_status);<\/pre>\n<p><\/p>\n<h3 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_9\"> \u904b\u7528\u306e\u8a71<\/h3>\n<p>Git \u3067\u904b\u7528\u3092\u3057\u3088\u3046\u3068\u601d\u3046\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u8ab2\u984c\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n \u30d6\u30e9\u30f3\u30c1\u306e\u904b\u7528\u3069\u3046\u3059\u308b\u304b<\/p>\n<ul>\n<li> \u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306f\u52dd\u624b\u306b\u5207\u308c\u3070\u3044\u3044\u3051\u3069\u3001\u52dd\u624b\u306a\u540d\u524d\u3065\u3051\u3066\u30d6\u30e9\u30f3\u30c1\u5207\u308a\u307e\u304f\u3063\u3066 push\/pull \u3055\u308c\u307e\u304f\u308b\u3068\u53b3\u3057\u3044<\/li>\n<\/ul>\n<\/li>\n<li>\n \u30ea\u30ea\u30fc\u30b9\u30fb\u30c7\u30d7\u30ed\u30a4\u3068\u306e\u95a2\u9023<\/p>\n<ul>\n<li> \u8ab0\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u3069\u3053\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u826f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3059\u308b\u304b\u3002\u30ea\u30ea\u30fc\u30b9\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u308a\u65b9\u306a\u3069\u3092\u3069\u3046\u3059\u308b\u304b\u3002<\/li>\n<\/ul>\n<\/li>\n<li> Git\u30b5\u30fc\u30d0\u3092\u4ecb\u3055\u306a\u3044\u500b\u4eba\u9593\u3067\u306e push\/pull \u306f\u8a31\u5bb9\u3059\u308b\u306e\u304b<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069\u3002<\/p>\n<p>\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u3053\u308c\u307e\u3067\u3001\u30c1\u30fc\u30e0\u3067\u3069\u306e\u3088\u3046\u306a\u904b\u7528\u304c\u306a\u3055\u308c\u3066\u304d\u305f\u304b\u3001\u306b\u3088\u3063\u3066\u8272\u3005\u7570\u306a\u308b\u3068\u60f3\u3044\u307e\u3059\u3002Git \u306f\u4f7f\u3046\u3051\u3069\u3001\u5168\u4f53\u3068\u3057\u3066\u306f Subversion \u3092 git-svn \u3067\u4f7f\u3044\u306a\u304c\u3089\uff08\u3064\u307e\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u4f5c\u696d\u304c\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u6069\u6075\u306b\u9650\u3089\u308c\u308b\u304c\u3001\u305d\u308c\u3060\u3051\u3067\u3082\u3088\u304f\u306a\u308b\u3001\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u3059\u306d\uff09\u3001\u3068\u3044\u3046\u904b\u7528\u65b9\u6cd5\u7b49\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u306d\u3002<br \/>\nGREE \u3067\u306e\u30c1\u30fc\u30e0\u3054\u3068\u306e\u904b\u7528\u3068\u30ea\u30ea\u30fc\u30b9\u30fb\u30c7\u30d7\u30ed\u30a4\u306b\u95a2\u3057\u3066\u306f\u3001\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u6b21\u306e\u6a5f\u4f1a\u306b\u3057\u307e\u3059\u3002<br \/>\n<\/p>\n<h3 id=\"hs_5b7584fe8cb2795509a54288bb30c797_header_10\"> \u307e\u3068\u3081<\/h3>\n<p>\u8272\u3005\u7d30\u304b\u3044\u8a71\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001<\/p>\n<ul>\n<li> gitosis \u306e\u8a2d\u5b9a<\/li>\n<li> \u5171\u901a\u74b0\u5883\u3067 Git \u4f7f\u3046\u5834\u5408\u306e\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8\u901a\u77e5\u8a2d\u5b9a<\/li>\n<li> \u30d6\u30e9\u30a6\u30b6\u3067\u898b\u305f\u3044\u554f\u984c<\/li>\n<li> pre-commit hook \u554f\u984c<\/li>\n<\/ul>\n<p>\u306e\u8a71\u3092\u3057\u307e\u3057\u305f (\u8d85\u30a2\u30e9\u30ab\u30eb\u30c8\u3067\u3059\u306d)\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u59cb\u307e\u3063\u3066\u3057\u307e\u3048\u3070\u3001\u3042\u3068\u306f\u500b\u3005\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u3044\u3046\u304b\u3001\u30b1\u30fc\u30b9\u30b9\u30bf\u30c7\u30a3\u306b\u306a\u3063\u3066\u304f\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u6163\u308c\u89aa\u3057\u3093\u3060\u30c4\u30fc\u30eb\u304b\u3089\u3084\u308a\u65b9\u304c\u304b\u308f\u308b\u3068\u8ab0\u3067\u3082\u3001\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3046\u3048\u306b\u30c8\u30e9\u30d6\u3063\u3066\u305d\u308c\u81ea\u4f53\u304c\u30b9\u30c8\u30ec\u30b9\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3092\u4e57\u308a\u8d8a\u3048\u308c\u3070\u5929\u56fd\u304c\u5f85\u3063\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b1\u30fc\u30b9\u30b9\u30bf\u30c7\u30a3\u7684\u306a\u8a71\u3082\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u3053\u3068\u3067\u3001\u662f\u975e\u3001Git \u30b5\u30fc\u30d0\u305f\u3066\u3066\u3001\u30c1\u30fc\u30e0\u3067 Git \u3067\u958b\u767a\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<div class=\"footnote\">\n<p id=\"hs_5b7584fe8cb2795509a54288bb30c797_footnote_1\"><a href=\"#hs_5b7584fe8cb2795509a54288bb30c797_footnotelink_1\">*1<\/a>: <a href=\"http:\/\/gitorious.org\/\">Gitorious<\/a> \u3068\u3044\u3046\u3001GitHub \u306e\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u8907\u96d1\u304b\u3064\u91cd\u3044\u306e\u3067\u4eca\u56de\u306f\u3084\u3081\u3066\u304a\u304d\u307e\u3057\u305f<\/p>\n<p id=\"hs_5b7584fe8cb2795509a54288bb30c797_footnote_2\"><a href=\"#hs_5b7584fe8cb2795509a54288bb30c797_footnotelink_2\">*2<\/a>: \u3055\u3059\u304c\u306b\u793e\u5185\u306e\u30ed\u30b0\u3092\u63b2\u8f09\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001ethna \u306e\u30ed\u30b0\u62dd\u501f :p <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3084\u3063\u3066\u308b sotarok \u3067\u3059\u3002\u6700\u8fd1\u3001\u793e\u5185\u3067\u3082\u300csotarok \u306f \u305d\u30fc\u305f\u308d\u3063\u304f\u3068\u8aad\u3080\u300d\u3068\u3044\u3046\u8aa4\u89e3\u304c\u5e83\u304c\u3063\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u6539\u3081\u3066\u81ea\u5df1\u7d39\u4ecb\u3057\u307e\u3059\u3068\u3001sotarok \u3068\u66f8\u3044\u3066\u300c\u305d\u30fc\u305f\u308d\u30fc\u300d\u307e\u305f\u306f\u300c\u305d\u30fc\u305f\u308d\u30fc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[33],"class_list":["post-2885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info","tag-git"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=2885"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2885\/revisions"}],"predecessor-version":[{"id":21151,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2885\/revisions\/21151"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=2885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=2885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=2885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}