Project

General

Profile

LariatOnlineGit Accessing the GIT repository

To check out a working local copy of the lariat-online code repository from GIT:

git clone ssh:///cvs/projects/lariat-online
git clone ssh:///cvs/projects/lariat-online-lariatfragments

GIT is similar to CVS, but has extra steps involved in committing changes
and updating local copies. Here are some translations:

1. Adding a source file:
cvs add filename.c => git add filename.c
cvs commit -m "Comments" filename.c => git commit -m "Comments" filename.c
git push
2. Modifying a source file has extra steps:
cvs commit -m "Comments" filename.c => git add filename.c
git commit -m "Comments" filename.c
git push
3. Retrieving others' changes:
cvs update => git pull
4. Tagging a version:
git tag -m "Comments" -a vXX_YY_ZZ
git push --tags
5. Checkout a tagged version:  
git clone ssh:///cvs/projects/lariat-online
cd lariat-online
git checkout V02-01-03
6. Checking out to a specific revision number: 
git clone ssh:///cvs/projects/lariat-online
cd lariat-online
git checkout [revision number (hex)]
See the redmine Wiki repository browser for revision numbers.

For a new, empty repository, you must issue the following command
before pushing your first commit:

git push origin master

This is not necessary for later commits and clones