Working locally with Git when main repository is SVN

前端 未结 4 1982
南旧
南旧 2021-02-02 01:41

There is an open source project I want to checkout and contribute to. The main repository is SVN but I want to work in Git. Is this possible?

Most of my searches turns u

4条回答
  •  一个人的身影
    2021-02-02 02:07

    If don't have, nor do you want to have, commit access to the SVN repository then a combination of git-svn and StGit might help. git-svn creates/updates a clone and stg maintains a series of patches on top of it (stg commands is from StGit Crash Course):

    git svn clone ..
    
    stg new invent-some-patch-id
    ...edit patch description...
    ...hack hack hack in the tree...
    stg refresh
    ...possibly hack some more...
    stg refresh    
    ..
    stg mail
    

    See StGIT Tutorial to get started.

    NOTE: I haven't actually tried this workflow.

提交回复
热议问题