I am trying to migrate a cvs repo to GIT which has lot of Attic folders and ,v underneath it. How does the cvs2git preserve this removed files to the git repository for future requirements.
Asked
Active
Viewed 360 times
1 Answers
1
CVS uses the Attic to track deleted files. When I used cvs2git (version 2.3) it migrated all those deleted files and put their contents in the new git repo. Of course because the files were deleted, they don't appear in a cloned working copy. Do this to view the log of commits for a deleted file in your working copy cloned from the newly created git repo, which will help you get the file back if you need it:
git log -- path/to/file.py
Hopefully your Attics are in good shape, but if not this SO post discusses corrupt CVS issues - when a file is present and also in the Attic, a situation that should never happen:
CVS comma-v files in Attic and directory
Also see this SO post about recovering files from git:

Community
- 1
- 1

chrisinmtown
- 3,571
- 3
- 34
- 43