Collaborating on the heavyNeutrino package - GhentAnalysis/heavyNeutrino GitHub Wiki
wget https://raw.githubusercontent.com/GhentAnalysis/heavyNeutrino/master/setup.sh
source setup.sh
If you need to alter the setup chain, modify the setup.sh script. In this way, we keep the setup instructions clean, simple and stable. The CMSSW and/or heavyNeutrino branch (default: master) can be changed in the setup.sh script if needed.
If you have already forked the heavyNeutrino repository, the setup.sh script will automatically use your fork and update the selected branch to the latest commits in the GhentAnalysis repository. If your fork is ahead of the GhentAnalysis repository for this branch, conflicts may arise (but you should always do a pull request once you have finished a new feature, so this should never happen).
If you don't have a fork, you will work directly on GhentAnalysis: be careful, you can mess things up easily
Suitable for small changes in one or a few specific files:
git add <file>
git commit
git push
Preferably ran before an important git push:
cd heavyNeutrino/multilep/test/testing
./runTests.py
If one of the test fails you could avoid spoiling the git history by adding the fixes to your latest commit:
git commit --amend
Simply go to your fork on https://github.com and initiate the pull request, add a reviewer if you are not sure if everything is ok.
Commands to do locally:
git fetch ghent
git merge ghent/master # or branch of your choice
git push # also update your github