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 7191043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:38:45+00:00 2026-05-28T19:38:45+00:00

I am using Mac OS X 10.7.2 with Git 1.7.8.2 installed using Homebrew, cvsps

  • 0

I am using Mac OS X 10.7.2 with Git 1.7.8.2 installed using Homebrew, cvsps 2.2b1, and git-cvsimport.

I worked with a Subversion repository of a Web site project sometime ago which I’ve successfully converted into a Git repo. While I haven’t worked on the project, a colleague who could not access and use Subversion, but had the latest checkout, saved his changes in a CVS repository.

I would like to convert his CVS commits and apply them on my Git repo. But I have no experience in CVS; as I only worked with Subversion and Git before.

For now, I’m only trying to convert his CVS repo into Git. (Perhaps I’ll use a git merge or git rebase later to get the converted Subversion and CVS repositories together into one Git repo. But I’m not at that point yet.)

He sent me a compressed tarball of his CVS “repo.” When I untar it, I get one directory matching the name of the project, with files in it matching each file of project, but with a “,v” at the end of each name for versioning. I assume the tarball I got is only a module for a CVS repository, which I think should be sufficient.

Here’s the structure of my files:

  • ~/Sites/CVSROOT/
    • sitename/
      • .cvsignore,v
      • index.html,v
      • images/
      • …

The commands I use to convert the CVS module into a Git repo is the following:

$ cd ~/Sites
$ rm -fr sitename # Make way for new git repo of same name.
$ git cvsimport -v -d ~/Sites -C sitename sitename

This is what it outputs:

Initialized empty Git repository in /Users/remi/Sites/sitename/.git/
Running cvsps...
cvs_direct initialized to CVSROOT /Users/remi/Sites
cvs rlog: Logging sitename
cvs rlog: Logging sitename/.git
cvs rlog: Logging sitename/.git/hooks
cvs rlog: Logging sitename/.git/info
cvs rlog: Logging sitename/.git/objects
cvs rlog: Logging sitename/.git/objects/info
cvs rlog: Logging sitename/.git/objects/pack
cvs rlog: Logging sitename/.git/refs
cvs rlog: Logging sitename/.git/refs/heads
cvs rlog: Logging sitename/.git/refs/tags
DONE; creating master branch
fatal: refs/heads/origin: not a valid SHA1
fatal: master: not a valid SHA1
fatal: You are on a branch yet to be born
checkout failed: 32768

When I get into the directory of the new Git repo, doing git log yields fatal: bad default revision 'HEAD'.

Is there something I’m missing? Are there other files I need from my colleague’s CVS repo server?

Thanks in advance for your help!

  • 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-05-28T19:38:46+00:00Added an answer on May 28, 2026 at 7:38 pm

    I suggest to use this http://cvs2svn.tigris.org/cvs2git.html. cvsps is not supported – doesnt work with branches and just plain old doesnt work IMHO

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

Sidebar

Related Questions

On my Mac OS X 10.5 (Leopard) machine, I have installed Git 1.6.0.2 using
I am trying to install git-svn on mac os x 10.5 using the following
Using Mac OS X 10.6.2, Eclipse SDK 3.5.2. I installed the Android plugin, following
I just installed gd2 using mac ports (sudo install gd2), which installed libraries in
I was happily using git on my old Mac (Leopard), then migrated to a
I'm using terminal for mac and running the line git push origin master It
I'm using Intellij Idea 9.0.4 on a Mac. I'm having trouble getting the Git
I recently switched to using Git (eGit) from SVN... for my Eclipse Java project
I'm using Git 1.7.4.1 on Mac 10.6.6. From the command line, how do I
Fellow coders, today is my first dive into git using Tower on the Mac

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.