-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Gourab Saha edited this page Jun 4, 2024
·
7 revisions
-
Go to your
github
and fork the DesyTau/CPinHToTauTau and the uhh-cms/cmsdb repositories. -
From your workspace do:
git clone https://github.com/jmalvaso/CPinHToTauTau.git
- Go inside
CPinHTauTau
repository
cd CPinHToTauTau/
and do:
git submodule update --init --recursive
- 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 <>]
- 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)
- Besides, you need to pull the current
cmsdb
version fromDesyTau/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!
- 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 :)