Project

General

Profile

GIT repository

To check out things from the repository you will need a Fermilab services account and a Fermilab kerberos account:

If you don't have them, go to [[http://computing.fnal.gov/xms/Services/Getting_Started/Introduction_to_Computing_at_Fermilab]] and follow directions.

Once you have an account, go to [[https://cdcvs.fnal.gov/redmine]], register (button in upper right corner), and/or sign in to redmine.

Once you are able to sign into redmine, send Geoffrey Mills () a message that you would like access to the repository and he can add you to the list. Once authenticated:

-To view the contents:

click on the "Repository tab":[[https://cdcvs.fnal.gov/redmine/projects/sbfd/repository]]

-To check out the complete contents on Unix or MacOS:

kinit <username>@FNAL.GOV
git clone ssh://p-sbfd@cdcvs.fnal.gov/cvs/projects/sbfd

G. Mills September 11, 2012

Some web page that explains how to setup and use git repositories on redmine:
https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/CreatingRepositories
https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/Git

There is also a great (and free for us non-commercial efforts) git GUI interface for Mac's, PC's and Unix boxes:
SmartGit: http://www.syntevo.com/smartgit/download.html

More on git repositories

If you want to view it:

https://cdcvs.fnal.gov/redmine/projects/sbfd/repository

Some quick start commands:

1. To create a clone of it on your laptop (I.e. Check it out of the repository):

kinit <your principle>@FNAL.GOV
git clone ssh:///cvs/projects/sbfd

That will create a local directory "sbfd" which currently contains a README file.

2. Then optionally make an "alias" for the repository like "fnal-readmine" (instead of typing "ssh:///cvs/projects/sbfd" all the time:

cd sbfd
git remote add fnal-redmine ssh:///cvs/projects/sbfd

3. Then add new files to the directory and do:

cp <myfiles....> .
git add fnal-redmine .
git commit

That will put them and any changes into your the local repository (the current directory you are in).

4. You then have to "push" them to the redmine site "ssh:///cvs/projects/sbfd". That allows other people to "pull" your changes from the redmine repository.

git push

Or alternatively

git push fnal-redmine

Or

git push ssh:///cvs/projects/sbfd

All of the above commands push your changes to the redmine site

5. More information:

The git users manual is here:

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html

A tutorial is here:

http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html