Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:27:41+00:00 2026-06-07T15:27:41+00:00

There is a central repository in CVS, and I would like to use it

  • 0

There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS.

What can I accomplish that on a daily basis?

The tasks I would like to accomplish are:

  • importing branches,
  • getting history in GIT-like format, and
  • exporting back my changes/commits to the centralized server

BTW, I have also looked at Best practices for using git with CVS . But It didn’t work and I couldn’t figure out what I missed or did wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:27:43+00:00Added an answer on June 7, 2026 at 3:27 pm

    What I have done in the past is:

    Import the CVS repository

    Using:

    $ git cvsimport -C target-cvs -r cvs -k -vA authors-file.txt -d $CVSROOT module
    

    Where:

    • target-cvs is the directory to keep my local copy of the repository.
    • cvs is the name to use for referencing the remote repository. So, I will have cvs/master, cvs/HEAD, etc. pointed locally by master.
    • authors-file.txt is the file that contains the matches between CVS account and Name+email, each line contains userid=User Name <useremail@hostname>
    • $CVSROOT is the CVS respository server. If I use an anonymous cloning from some sourceforge repository, then I would use: :pserver:anonymous@project_name.cvs.sourceforge.net:/cvsroot/project_name
    • module is the module inside of the repository I want to clone. If the repository has only one module, then likely will be the same as project_name.

    Update the repository

    It is possible to repeat the command I wrote previously. In that particular example, it should be run in the parent directory of target-cvs. To make it easier in the future, you might want to configure some variables (you can read more details in the answer of “How to export revision history from mercurial or git to cvs?“)

    $ git cvsimport
    

    That would be enough to keep the local repository in git synchronized with the remote one in CVS.

    Daily work

    From now on, every change should go in a local git branch. One feature, one branch. For this, I use a work flow described in “A successful Git branching model“. The only difference is that master points to CVS, but conceptually the same work flows can be applied here. It is just a convention.

    Once your commit is pushed in CVS, it will be back to master in the next update (git cvsimport). Then, you can remove the local branch that implemented that feature.

    For work in progress (in local branches), you should rebase them against master. Because you have the features separated, it should be easier to solve conflicts. The tricky part is when some branches depend on others, but still manageable. Micro commits helps a lot (as in any git work flow).

    If every local branch is rebased and master never touched (except for updates), then git
    cvsexportcommit
    should just work. Remember, it works for one commit. It is a bit tedious, but it is better than nothing. Given the previous example the command should be something like:

    $ git cvsexportcommit -vc commit-id
    

    If you only have read-only access to the remote CVS, then you can send the patches by email or make your git repository public, so the commiters can grab your patches to apply them. Nothing different from a normal work flow of CVS in this case. Again, in the next update you will see the changes in master.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully made, committed, and pushed changes to a central git repository. I
I have several non-bare Git repositories. There is one central Git repository (or at
This question assumes there's a blessed central repository that members of a team clone
Is there a central place where I can find the specs for the majority
Is there any way with Git (on windows) to work with the same repository
we have a Git remote repository (in a way, our central repository) on the
Using Git or Mercurial, if the working directory is 1GB, then the local repository
I have a central Mercurial repository, which configured to use HTTPS and requires authentication
I want to create a development environment with my central repository hosted somewhere like
Do artifacts ever expire on the Maven Central Repository? Is there a size limit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.