Git
notes on Git features
Shallow Checkout
git clone --depth=100 <repo path>
parse Checkout
Checkout a particular directory in the repo
git clone --no-checkout https://github.com/Xilinx/embeddedsw.git --depth=100
cd embeddedsw/
git config core.sparseCheckout true
#Add the directories and files that needed to be checkout
echo "XilinxProcessorIPLib/drivers/aiengine/*" > .git/info/sparse-checkout
git checkout master
Setup own Mirrors
git clone --mirror https://github.com/Xilinx/linux-xlnx.git ./linux-xlnx.referenceh
Update the mirrors
cd <reference dir>
git remote update
Leverage Local Mirrors
git clone --reference <path to reference dir> https://github.com/Xilinx/linux-xlnx.git
Last updated