{"id":163,"date":"2012-10-29T22:19:08","date_gmt":"2012-10-29T20:19:08","guid":{"rendered":"http:\/\/tommy.johannishus.se\/?p=163"},"modified":"2012-10-29T22:19:08","modified_gmt":"2012-10-29T20:19:08","slug":"git","status":"publish","type":"post","link":"https:\/\/www.appelis.se\/?p=163","title":{"rendered":"cvs to git"},"content":{"rendered":"<p>Flyttade mina x10 projekt till git idag.<\/p>\n<p><code>apt-get install git-core<\/code><br \/>\n<code>apt-get install gitweb<\/code><br \/>\n<code>apt-get install cvsps<\/code> ska beh\u00f6vas f\u00f6r git cvsimport?<\/p>\n<p><code>cat \/etc\/gitweb.conf<\/code><br \/>\n$projects_list = &#8221;\/var\/cache\/git\/projects_list&#8221;;<\/p>\n<p><code>cat \/var\/cache\/git\/projects_list<\/code><br \/>\nx10-common.git Tommy<br \/>\nx10-web.git Tommy<br \/>\nx10test-android.git Tommy<\/p>\n<p><code>cd \/var\/cache\/git<\/code><\/p>\n<p><strong>Migrera repo:n<\/strong><br \/>\ngit cvsimport -k -i -d \/var\/lib\/cvs -C\u00a0project project<br \/>\nmv project\/.git project.git<br \/>\nrmdir project<br \/>\nchgrp -R src project.git<br \/>\nchmod -R ug+w project.git<br \/>\nchmod +s project.git<br \/>\n# the hooks\/ and info\/ dirs are special since the control repository access<br \/>\ncd project.git; chgrp -R src hooks info config description<br \/>\nfind -type d -exec chmod +s {} ;<\/p>\n<p><code>vi config<\/code>: bare = true<br \/>\n<code>vi description<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flyttade mina x10 projekt till git idag. apt-get install git-core apt-get install gitweb apt-get install cvsps ska beh\u00f6vas f\u00f6r git cvsimport? cat \/etc\/gitweb.conf $projects_list = &#8221;\/var\/cache\/git\/projects_list&#8221;; cat \/var\/cache\/git\/projects_list x10-common.git Tommy x10-web.git Tommy x10test-android.git Tommy cd \/var\/cache\/git Migrera repo:n git cvsimport -k -i -d \/var\/lib\/cvs -C\u00a0project project mv project\/.git project.git rmdir project chgrp -R src project.git [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-skorpan"],"_links":{"self":[{"href":"https:\/\/www.appelis.se\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appelis.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appelis.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appelis.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appelis.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":0,"href":"https:\/\/www.appelis.se\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appelis.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appelis.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appelis.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}