-
Notifications
You must be signed in to change notification settings - Fork 1
CVS to GIT migration
Tatiana Burek edited this page Nov 11, 2016
·
2 revisions
- Download and install cvs2git package : cvs2git
- Get direct (filesystem) read-only access to a copy of the CVS repository
- Create directory <path> for blob and dump files and <temp_dir> for temp files
- Use cvs2git command to create blob and dump files with METVIewer tags:
python cvs2git \
--force-tag=mv_* --use-rcs --tmpdir=<temp_dir> \
--blobfile=<path>/git-blob.dat --dumpfile=<path>/git-dump.dat \
--username=<cvs_user_name> \
<path_to_CVS_root>/apps/verif/metviewer
- Initialize a git repository:
mkdir METViewer
cd METViewer
git init
- Load the dump files into the new git repository using git fast-import
cat <path>/cvs2svn-tmp/git-blob.dat <path>/cvs2svn-tmp/git-dump.dat | git fast-import
- Run the contrib/git-move-refs.py script from within the git repository.
- Explicitly check out the "master" version of the files into your working tree:
git checkout
- Add origin
git remote add origin https://github.com/NCAR/METViewer.git
- Push the source tree into GitHub including tags:
git push --tags -u origin master