Skip to content

Installation

Gourab Saha edited this page Jun 4, 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:

If you do not want to fork the cmsdb (not necessary though), you can do the following

cd CPinHToTauTau/modules/cmsdb
git remote remove origin
git remote add desytau https://github.com/DesyTau/cmsdb.git
git remote add upstream https://github.com/uhh-cms/cmsdb.git

else, in addition, inside CPinHToTauTau/modules/cmsdb, do

git remote add origin <link_to_your_forked_repo> e.g. [email protected]:jmalvaso/cmsdb.git [without <>]
  1. Check if everything 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  <link_to_your_forked_repo> (fetch)  # if forked
origin  <link_to_your_forked_repo> (push)   # if forked
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 checkout master
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 <your_favorite_name> e.g. babushcha

Enjoy your perfectly github-linked local repository :)

Clone this wiki locally