We will use git. There is a lot of documentation on the web, so it should be easy to get help if you are stuck.
First time checkout
To get started, please run
git clone /nfs/slac/g/lcd/ilc_data4/DBD/repository/ ZGamma_analysis
cd ZGamma_analysis
Then copy the files that you have already created (only the code, not the stdhep files and not the ROOT files) to this directory.
cp /path/to/source.py /path/to/analysis.C /path/to/whizardinput.sin .
git add *.*
git commit -m "first commit"
git push
I made some changes to my code and want to share it
git status # this shows you the files that were changed. If you have created new files, add them with "git add <filename.ext>"
- git commit -am "I changed the fit shape to a double Gaussian" # use a meaningful message
git push
Somebody else made some changes, and I would like to get them
git pull # to get the changes
git log # to read the messages about the changes