git clone of git-svn tree?

前端 未结 6 1334
一生所求
一生所求 2020-12-13 03:05

I\'ve got a \'git-svn\' working tree. I\'d like to clone a \"pure\" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree,

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 03:36

    If you're able to install custom hooks into Subversion repository, consider using SubGit.

    SubGit is a server-side solution that automatically synchronizes SVN and Git repositories. In order to install SubGit do the following:

        $ subgit configure $SVN_REPOS
        $ # Adjust $SVN_REPOS/conf/subgit.conf 
        $ #     to specify your branches and tags
        $ # Adjust $SVN_REPOS/conf/authors.txt 
        $ #     to introduce svn author names to their git counterparts
        $ subgit install $SVN_REPOS
        $ ...
        $ INSTALLATION SUCCESSFUL
    

    At this moment SubGit has installed hooks that are triggered by every svn commit and git push. This way SubGit converts any incoming modification.

    See also comparison with git-svn.

提交回复
热议问题