Best practices for using git with CVS

前端 未结 5 1869
北恋
北恋 2020-11-28 23:49

What are your best practices and tips for using git to interface with a CVS repository?

5条回答
  •  感动是毒
    2020-11-29 00:29

    I've only worked with Git-CVS interactions to demo Git for a friend, but it was very straightforward.

    • You need to install a current copy of cvsps. Git cvsimport uses this to access CVS history.
    • We found that, for a large project, inital set-up was much faster by taking a full copy of the CVS repo onto your computer, and doing the git cvsimport locally:

      $ rsync rsync://yourprojecthost.com/cvsroot/yourproject/*  
      $ mkdir myproject.git  
      $ cd myproject.git  
      $ git cvsimport -p -x -v -d :local:/path/to/cvsroot/yourproject 
      

    Note that the -x after -p is very important. This passes -x to cvsps. For more information please see the cvsps man page.

提交回复
热议问题