{"id":557,"date":"2013-03-11T10:08:51","date_gmt":"2013-03-11T01:08:51","guid":{"rendered":"http:\/\/43.203.250.216\/?p=557"},"modified":"2025-10-01T16:25:05","modified_gmt":"2025-10-01T07:25:05","slug":"bare-git%ec%9c%bc%eb%a1%9c-%eb%b6%80%ed%84%b0-source-code-%eb%b3%b5%ec%82%ac%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=557","title":{"rendered":"Bare git\uc73c\ub85c \ubd80\ud130 source code \ubcf5\uc0ac\ud558\uae30"},"content":{"rendered":"<blockquote><p>Android\uc5d0 \uae30\ubc18\ud55c project\ub97c repo\ub85c mirror\ub85c \ub9cc\ub4e4\ub54c\ub294 &#8211;mirror option\uc744 \uc8fc\uc5b4\uc11c bare git\uc744 \ub9cc\ub4e0\ub2e4(<a title=\"Repo mirroring\" href=\"https:\/\/litcoder.com\/?p=33\">\uc9c0\ub09c posting \ucc38\uc870<\/a>). \ub9cc\uc57d \uc774\ub807\uac8c \ub9cc\ub4e4\uc5b4\uc9c4 bare repository\ub85c \ubd80\ud130 \uc77c\ubc18\uc801\uc778 \ud615\ud0dc\uc758 source repository\ub97c \uc0dd\uc131\ud558\ub824 \ud55c\ub2e4\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c \ud560\uae4c? \uc774 posting\uc5d0\uc11c\ub294 git-daemon\ub4f1\uc744 \uc124\uce58 \ud558\uc9c0 \uc54a\uace0 local\uc5d0 \uc788\ub294 bare git\uc73c\ub85c \ubd80\ud130 source \uad6c\uc870\ub97c \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud55c\ub2e4.<\/p><\/blockquote>\n<h2>Repo Init<\/h2>\n<pre class=\"lang:default highlight:0 decode:true\">$ repo init help\nUsage: repo init -u url [options]<\/pre>\n<p>repo init \uba85\ub839\uc744 \uc218\ud589\ud560 \ub54c -u \ub4a4\uc5d0 url\uc744 \uc801\uc5b4\uc900\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc774 \ubd80\ubd84\uc5d0 &#8216;git:\/\/&#8217;\uc774\ub098 &#8216;ssh:\/\/&#8217; protocol\ub85c \uc2dc\uc791\ud558\ub294 \uc8fc\uc18c\ub97c \uc801\uc9c0\ub9cc \uc6b0\ub9ac\uac00 \ud558\ub824\ub294 \uac83\uc740 file \ubcf5\uc0ac \uc774\ubbc0\ub85c &#8216;file:\/\/&#8217;\uc744 \uc801\uc5b4\uc11c repo init\uc744 \uc218\ud589\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ repo init -u file:\/\/PATH_TO_MIRROR -b BRANCH -m MANIFEST_XML<\/pre>\n<p>\ub180\ub78d\uac8c\ub3c4(!) init\uc774 \uc218\ud589\ub418\uba74\uc11c .repo directory\uac00 \uc0dd\uc131\ub41c\ub2e4.<\/p>\n<h2>Fetch Address \uc218\uc815<\/h2>\n<p>.repo\/manifests\uc5d0\uc11c fetch address\ub97c \uac00\uc9c0\uace0 \uc788\ub294 xml file\uc744 \ucc3e\uc544\uc11c \uc811\uadfc address\ub97c file\uacbd\ub85c\ub85c \uc218\uc815\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">  &lt;!-- \n  &lt;remote name=\"REMOTE_NAME\" fetch=\"ssh:\/\/SERVER_IP\" review=\"REVIEW_ADDRESS:8080\"\/&gt; \n  --&gt;\n  &lt;remote name=\"REMOTE_NAME\" fetch=\"file:\/\/&lt;path_to_mirror&gt;\/\" review=\"REVIEW_ADDRESS:8080\"\/&gt;<\/pre>\n<p>init\uc774 \uc644\ub8cc \ub418\uace0 \ub09c \ud6c4\uc5d0\ub294 \uc77c\ubc18\uc801\uc778 \uac83\uacfc \uac19\uc774 repo sync \uba85\ub839\uc5b4\ub97c \uc218\ud589\ud558\uba74 \ub41c\ub2e4. file:\/\/\ub85c \uc218\uc815\ud55c xml file\ub4e4\uc744 \uc6d0\ub798 \uc0c1\ud0dc\ub85c \ub418\ub3cc\ub9ac\ub294 \uac74 \ub2e4\ub4e4 \uc544\uc2e4\ud14c\uace0 &#8230; \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android\uc5d0 \uae30\ubc18\ud55c project\ub97c repo\ub85c mirror\ub85c \ub9cc\ub4e4\ub54c\ub294 &#8211;mirror option\uc744 \uc8fc\uc5b4\uc11c bare git\uc744 \ub9cc\ub4e0\ub2e4(\uc9c0\ub09c posting \ucc38\uc870). \ub9cc\uc57d \uc774\ub807\uac8c \ub9cc\ub4e4\uc5b4\uc9c4 bare repository\ub85c \ubd80\ud130 \uc77c\ubc18\uc801\uc778 \ud615\ud0dc\uc758 source repository\ub97c \uc0dd\uc131\ud558\ub824 \ud55c\ub2e4\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c \ud560\uae4c? \uc774 posting\uc5d0\uc11c\ub294 git-daemon\ub4f1\uc744 \uc124\uce58 \ud558\uc9c0 \uc54a\uace0 local\uc5d0 \uc788\ub294 bare git\uc73c\ub85c \ubd80\ud130 source \uad6c\uc870\ub97c \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud55c\ub2e4. Repo Init $ repo init help Usage: repo init [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[11,19,80,108,125,130],"class_list":["post-557","post","type-post","status-publish","format-standard","hentry","category-tools","tag-android","tag-bare-git","tag-mirror","tag-repo","tag-tip","tag-tools"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=557"}],"version-history":[{"count":3,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions"}],"predecessor-version":[{"id":3642,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions\/3642"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}