Changes between Version 14 and Version 15 of TipAndDoc/scm/git


Ignore:
Timestamp:
Apr 12, 2013 2:06:58 AM (11 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/scm/git

    v14 v15  
    3232 > $ git config remote.origin.mirror true 
    3333 > }}} 
     34 
     35 = git-svn = 
    3436 * [http://stackoverflow.com/questions/8333870/is-there-an-advantage-to-using-no-metadata-in-git-svn-clone Is there an advantage to using --no-metadata in git svn clone? - Stack Overflow] 
    3537 > This option is NOT recommended as it makes it difficult to track down old references to SVN revision numbers in existing documentation, bug reports and archives. 
    3638 
    3739 * [http://blog.s21g.com/articles/618 git-svnでSVN上の複数のブランチやtrunkを扱う方法 - Hello, world! - s21g] 
     40 * [http://stackoverflow.com/questions/1584675/converting-svn-to-git-how-to-get-the-branches-not-to-be-just-remote-in-the-svn Converting svn to git, how to get the branches not to be just remote in the svn repo? - Stack Overflow] 
    3841 
    39  == git-http-backend == 
     42 == convert svn repos to git == 
     43 * trunk/tags/branches -> -s オプションで拾える 
     44 * vendor -> 手動でconfig --addしてfetch 
     45 * リモートブランチをローカルブランチへ変更する 
     46 
     47 1. mitty@test:~/works$ git svn init -s http://lab.mitty.jp/svn/lab/ lab 
     48{{{ 
     49Initialized empty Git repository in /home/mitty/works/lab/.git/ 
     50}}} 
     51 1. mitty@test:~/works/lab (master)$ cat .git/config 
     52{{{ 
     53[core] 
     54        repositoryformatversion = 0 
     55        filemode = true 
     56        bare = false 
     57        logallrefupdates = true 
     58[svn-remote "svn"] 
     59        url = http://lab.mitty.jp/svn/lab 
     60        fetch = trunk:refs/remotes/trunk 
     61        branches = branches/*:refs/remotes/* 
     62        tags = tags/*:refs/remotes/tags/* 
     63}}} 
     64 1. mitty@test:~/works/lab (master)$ git config --add svn-remote.svn.fetch "vendor:refs/remotes/vendor" 
     65{{{ 
     66[core] 
     67        repositoryformatversion = 0 
     68        filemode = true 
     69        bare = false 
     70        logallrefupdates = true 
     71[svn-remote "svn"] 
     72        url = http://lab.mitty.jp/svn/lab 
     73        fetch = trunk:refs/remotes/trunk 
     74        branches = branches/*:refs/remotes/* 
     75        tags = tags/*:refs/remotes/tags/* 
     76        fetch = vendor:refs/remotes/vendor 
     77}}} 
     78 1. mitty@test:~/works/lab (master)$ git svn fetch 
     79{{{ 
     80 
     81Checked out HEAD: 
     82  http://lab.mitty.jp/svn/lab/trunk r204 
     83creating empty directory: TipAndDoc/tools/trac/plugins 
     84}}} 
     85  * mitty@test:~/works/lab (master)$ ls -1F 
     86{{{ 
     87Commentary/ 
     88Dev/ 
     89misc/ 
     90TipAndDoc/ 
     91}}} 
     92  * mitty@test:~/works/lab (master)$ git tag -l 
     93  * mitty@test:~/works/lab (master)$ git br -a 
     94{{{ 
     95* master 
     96  remotes/tags/r89-trunk 
     97  remotes/tags/snuploader_name 
     98  remotes/tags/snuploader_name@29 
     99  remotes/tags/snuploader_name@36 
     100  remotes/tags/twitter 
     101  remotes/trunk 
     102  remotes/twitter-0.1 
     103  remotes/twitter-0.1@44 
     104  remotes/twitter-0.1@65 
     105  remotes/twitter-0.1@66 
     106  remotes/vendor 
     107}}} 
     108 1. mitty@test:~/works/lab (master)$ mv .git/refs/remotes/tags/* .git/refs/tags/ 
     109 1. mitty@test:~/works/lab (master)$ rmdir .git/refs/remotes/tags/ 
     110 1. mitty@test:~/works/lab (master)$ mv .git/refs/remotes/* .git/refs/heads/ 
     111 1. mitty@test:~/works/lab (master)$ rmdir .git/refs/remotes/ 
     112 * mitty@test:~/works/lab (master)$ git tag -l 
     113{{{ 
     114r89-trunk 
     115snuploader_name 
     116snuploader_name@29 
     117snuploader_name@36 
     118twitter 
     119}}} 
     120 * mitty@test:~/works/lab (master)$ git br -a 
     121{{{ 
     122* master 
     123  trunk 
     124  twitter-0.1 
     125  twitter-0.1@44 
     126  twitter-0.1@65 
     127  twitter-0.1@66 
     128  vendor 
     129}}} 
     130  * mitty@test:~/works/lab (master)$ git co vendor 
     131{{{ 
     132Switched to branch 'vendor' 
     133}}} 
     134  * mitty@test:~/works/lab (vendor)$ ls -1F 
     135{{{ 
     136DrRacket/ 
     137GeSHi-1.0.8.9/ 
     138lxc/ 
     139OCaml/ 
     140SnUploader/ 
     141TipAndDoc/ 
     142trac/ 
     143twitter/ 
     144ubuntu/ 
     145utvpn/ 
     146vmware/ 
     147}}} 
     148 
     149 = git-http-backend = 
    40150 * [https://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html git-http-backend(1)] 
    41151 * [http://d.hatena.ne.jp/ono51/20120619/p1 nginxでgitリポジトリの公開 - Smart HTTPを試してみた - 逆襲のWebエンジニア]