Skip to content

Installation

Jacopo Malvaso edited this page May 23, 2024 · 7 revisions

A quick guide to create and link properly your DesyTau/CPinHToTauTau working repository

  1. Go to your github and fork the DesyTau/CPinHToTauTau and the uhh-cms/cmsdb repositories.

  2. From your workspace do:

git clone https://github.com/jmalvaso/CPinHToTauTau.git
  1. Go inside CPinHTauTau repository
cd CPinHToTauTau/

and do:

git submodule update --init --recursive
  1. Then set cmsdb as follow:
cd CPinHToTauTau/modules/cmsdb
git remote remove origin
git remote add desytau https://github.com/DesyTau/cmsdb.git (common repository)
git remote add upstream https://github.com/uhh-cms/cmsdb.git (original repository)
git remote add origin [email protected]:jmalvaso/cmsdb.git (your personal repository)
  1. Check if everiything is in place by:
git remote -v

You should see something like this:

desytau https://github.com/DesyTau/cmsdb.git (fetch)
desytau https://github.com/DesyTau/cmsdb.git (push)
origin  [email protected]:jmalvaso/cmsdb.git (fetch)
origin  [email protected]:jmalvaso/cmsdb.git (push)
upstream        https://github.com/uhh-cms/cmsdb.git (fetch)
upstream        https://github.com/uhh-cms/cmsdb.git (push)
  1. Besides, you need to pull the current cmsdb version from DesyTau/cmsdb:
git pull desytau master

You will may encounter some conflicts between DesyTau/cmsdb and uhh-cms/cmsdb that need to be resolved each time you pull... it is what it is!

  1. Everything should be in a good shape now, go back to your local CPinHToTauTau repository:
cd ../..

and run the setup.sh:

source setup.sh dev

Enjoy your perfectly github-linked local repository :)

Clone this wiki locally