Final preparations

Overview

Teaching: 5 min
Exercises: 10 min
Questions
  • What do I have to prepare for the workshop?

Objectives
  • Run the analysis once by yourself

  • Make two git repositories on CERN GitLab

  • Add files to the repositories

Final preparations

We assume that you have run the analysis once by yourself and you are familiar with the different analysis steps. Follow the instructions below as final preparations for a successful workshop.

Visit GitHub/CERN GitLab and initialize the repositories

First, go to github or gitlab.cern.ch and create two new repositories using the New repository (Github) or New project (Gitlab) button. The names of the repositories should be:

Check out the repositories

Next, check out the repositories. You can do this with the following command.

Github:

git clone https://github.com/<your username>/<repository name>

CERN GitLab:

git clone https://gitlab.cern.ch/<your username>/<repository name>

Add files to the repositories

Now add the files of the analysis you got from the zip archive to the repositories following the structure below. Don’t add the outputs of the analysis such as the plots and the ROOT files!

If you have never used git before, remember to set your name and email address.

git config --global user.name "<your name>"
git config --global user.email "<your email>"

Then, add the files with a meaningful commit message using the commands below.

 git add <files>
 git commit -m <commit message>

Key Points

  • Run the analysis by yourself to understand the different steps.

  • Set up git and visit CERN GitLab.

  • Make two git repositories and add files to them.