Kalanand's June 2013 Log

   May 2013   
June 2013
SuMoTuWeThFrSa
      1
2345678
9101112131415
16171819202122
23242526272829
30      
   July 2013   

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.

Go to May's log


Last modified: Wed Jul 31 20:00:49 CST 2013