Project

General

Profile

Git commands for CVS users

Note, git is not cvs, and there are difference in command semantics.

A. use git directly
https://www.lsc-group.phys.uwm.edu/daswg/docs/howto/git4cvs.html

export ENSTORECVS=":pserver::/cvs/hppc:"
cvs -d $ENSTORECVS login
git config --global user.name "Joe Doe"
git config --global user.email ""
cvs -d $ENSTORECVS co module git clone ssh:///cvs/projects/enstore-git-test e-g-t--git-clone
cd e-g-t--git-clone
git pull ssh:///cvs/projects/enstore-git-test file_aggregation_v1:file_aggregation_v1
cvs add file git add file
cvs commit file
cvs commit
git commit file
git commit -a
cvs rm file git rm file
mv file file2
cvs rm file
cvs add file2
git mv file file2
cvs diff -u git diff
rm file
cvs update file
git checkout file
cvs tag tag_name git tag -a tag_name
cvs update -r tag_name/branch_name git checkout tag_name/branch_name
cvs tag new_branch_root
cvs tag -b -r new_branch_root new_branch
git branch new_branch
git checkout new_branch
cvs update -j branch_name
cvs commit -m "merge changes from branch_name"
git merge branch_name

B. Use wrapper script.

Install eg, Easy Git Wrapper and use the following tutorial:
https://software.sandia.gov/trilinos/developer/git/help/eg-git-ref.txt