Epics@GSI Webhome

Git Tricks Tips Import Cvs Into Git Including History

Introduction

Importing cvs into git with the help of

URL_CVSROOT_EXTERNAL=<[User@]external CVSROOT directory>, e.g. scs@lx-pool.gsi.de:/misc/hadesprojects/slowcontrol/cvsroot/
CVSROOT_LOCAL=<local CVSROOT directory>
GIT_TARGET_DIR=<New Git Repository>, e.g. "hadesprojects-slowcontrol.git"
GIT_TARGET_REPOSITORY=${GIT_TARGET_DIR%%.git}.git
MODULE=<CVS Module to extract>

mkdir -p $CVSROOT_LOCAL &&
rsync --progress -a "$URL_CVSROOT_EXTERNAL/*" $CVSROOT_LOCAL
mkdir -p $GIT_TARGET_REPOSITORY &&
cd $GIT_TARGET_REPOSITORY &&
git init --bare &&
time git cvsimport -o cvshead -p xv -v -k -d $CVSROOT_LOCAL -C $GIT_TARGET_REPOSITORY $MODULE >&/tmp/cvsimport.log


-- WikiGuest - 31 Oct 2014
-- PeterZumbruch - 2014-10-31
Edit | Attach | Print version |  PDF | History: r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 2014-10-31, PeterZumbruch
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)