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 masterSetup own Mirrors
git clone --mirror https://github.com/Xilinx/linux-xlnx.git ./linux-xlnx.referencehUpdate the mirrors
cd <reference dir>
git remote updateLeverage Local Mirrors
git clone --reference <path to reference dir> https://github.com/Xilinx/linux-xlnx.gitLast updated