Kalanand's June 2013 Log
June 26th
Sparse Checkout for git
From Sal Rappoccio. UserCode on git using sparse-checkout:
git config core.sparsecheckout true
git status
# Give yourself an alias to your usercode
# (you can choose something other than "Analysis" but
# I used that in UserCode, you can use what you want)
git remote add Analysis https://github.com/rappoccio/usercode.git
# Put in the list of packages that you want to check out
# (obviously these are used for mine, you can use this as an example)
echo "EDSHyFT" >> .git/info/sparse-checkout
echo "PdfWeights" >> .git/info/sparse-checkout
echo "SHyFT" >> .git/info/sparse-checkout
echo "SHyFTScripts" >> .git/info/sparse-checkout
echo "JetAnalysis" >> .git/info/sparse-checkout
echo "BoostedTopAnalysis" >> .git/info/sparse-checkout
# Pull the Analysis branch from the master
git pull Analysis master
# If you want, get the tags from github also
git fetch Analysis
# Then you can checkout specific branches on your own github like this:
git checkout V20-00-03
Viola. Packages in UserCode on github.
Last modified: Wed Jul 31 20:00:49 CST 2013