{"id":27,"date":"2023-02-01T00:00:00","date_gmt":"2023-01-31T15:00:00","guid":{"rendered":"https:\/\/hmhr.ath.cx\/?p=27"},"modified":"2023-02-08T01:41:34","modified_gmt":"2023-02-07T16:41:34","slug":"subversion","status":"publish","type":"post","link":"https:\/\/hmhr.ath.cx\/?p=27","title":{"rendered":"Subversion"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Subversion(SVN)\u3068\u306f<\/h2>\n\n\n\n<p>Subvesion\u306f\u3044\u308f\u3086\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3002\u6700\u8fd1\u3067\u306fGit\u304c\u6709\u540d\u3060\u3068\u601d\u3046\u3002<br>Git\u304c\u51fa\u3066\u304f\u308b\u307e\u3067\u306fSubversion\u304c\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3060\u3063\u305f\u304c\u3001Git\u304c\u51fa\u3066\u304d\u3066\u307b\u307c\u4f7f\u308f\u308c\u306a\u304f\u306a\u3063\u3066\u304d\u305f\u3002<br>\u3057\u304b\u3057\u3001\u307e\u3060\u305f\u307e\u306bSVN\u3092\u89e6\u308b\u6a5f\u4f1a\u306f\u3042\u308b\u306e\u3067\u307e\u3068\u3081\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo -u svn svnadmin create \/path\/to\/repository\/project\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067\u3001project\u3068\u3044\u3046\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u4f5c\u6210\u3067\u304d\u308b\u3002<br>-u\u306fsudo\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001\u3069\u306e\u30e6\u30fc\u30b6\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u304b\u3092\u793a\u3057\u3066\u3044\u308b\u3002\u4eca\u56de\u306fsvn\u3068\u3044\u3046\u30e6\u30fc\u30b6\u3068\u3057\u3066svnadmin\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p><strong>\/path\/to\/repository\/project\/conf\/svnserve.conf<\/strong><br>\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u9069\u5fdc\u3055\u308c\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3002\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u3067\u306e\u307f\u4f7f\u7528\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u7279\u306b\u7de8\u96c6\u305b\u305a\u3068\u3082\u5927\u4e08\u592b\u3060\u3068\u601d\u3046\u3002<br>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e<strong>[general]<\/strong>\u5185\u306b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nanon-access = write\n<\/pre><\/div>\n\n\n<p>\u3068\u66f8\u3044\u3066\u304a\u3051\u3070\u3001\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u304c\u66f8\u304d\u8fbc\u307f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u4fe1\u7528\u3067\u304d\u308b\u30ed\u30fc\u30ab\u30eb\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u3067\u306e\u307f\u904b\u7528\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3053\u308c\u3067\u554f\u984c\u306a\u3055\u305d\u3046\u3002<br>\u30aa\u30fc\u30d7\u30f3\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306a\u3069\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u95a2\u4fc2\u306a\u3044\u30e6\u30fc\u30b6\u304c\u4f7f\u3048\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5834\u5408\u306f\u304d\u3063\u3061\u308a\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3057\u305f\u8a2d\u5b9a\u3092\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u521d\u671f\u30b3\u30df\u30c3\u30c8\u307e\u3067\u306e\u7c21\u5358\u306a\u6d41\u308c<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u696d\u3092\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\ncd ~\/src\n#\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\nsvn co svn:\/\/hostname\/project\n#\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\ncd project\n#\u304b\u3089\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u3001\u57fa\u672c\u7684\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\nmkdir trunk tags branches\n#SVN\u306e\u7ba1\u7406\u306b\u4f5c\u6210\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\nsvn add trunk tags branches\n#\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3059\u308b\nsvn ci\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067\u4f5c\u696d\u3059\u308b\u30d9\u30fc\u30b9\u304c\u6574\u3063\u305f\u306e\u3067\u3001trun\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u958b\u767a\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3001add,ci\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u3051\u3070OK\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30d5\u30a9\u30eb\u30c8\u30a8\u30c7\u30a3\u30bf<\/h2>\n\n\n\n<p>\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u6642\u306e\u30b3\u30e1\u30f3\u30c8\u5165\u529b\u306a\u3069\u3067\u8d77\u52d5\u3059\u308b\u30a8\u30c7\u30a3\u30bf\u306f\u3001debian\u306e\u5834\u5408update-alternatives\u30b3\u30de\u30f3\u30c9\u3067\u5909\u66f4\u3067\u304d\u308b\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6307\u5b9a\u3057\u305f\u30a8\u30c7\u30a3\u30bf\u306fsvn ci\u306e\u4ed6\u3001crontab -e\u306a\u3069\u3067\u8d77\u52d5\u3059\u308b\u30a8\u30c7\u30a3\u30bf\u306a\u3069\u306b\u3082\u9069\u5fdc\u3055\u308c\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo update-alternatives --config editor\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Subversion(SVN)\u3068\u306f Subvesion\u306f\u3044\u308f\u3086\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3002\u6700\u8fd1\u3067\u306fGit\u304c\u6709\u540d\u3060\u3068\u601d\u3046\u3002Git\u304c\u51fa\u3066\u304f\u308b\u307e\u3067\u306fSubversion\u304c\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3060\u3063\u305f\u304c\u3001Git\u304c\u51fa\u3066 &hellip; <a href=\"https:\/\/hmhr.ath.cx\/?p=27\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Subversion<\/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":[4],"tags":[6],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-linux","tag-subversion"],"_links":{"self":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":1,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}