> For the complete documentation index, see [llms.txt](https://explore-vineeth.gitbook.io/mywiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://explore-vineeth.gitbook.io/mywiki/programming/tools/git.md).

# Git

notes on Git features&#x20;

#### Shallow Checkout

```bash
git clone --depth=100 <repo path>
```

#### parse Checkout&#x20;

Checkout a particular directory in the repo

```bash
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&#x20;

```bash
git clone --mirror https://github.com/Xilinx/linux-xlnx.git ./linux-xlnx.referenceh
```

Update the mirrors

```bash
cd <reference dir>
git remote update
```

#### Leverage Local Mirrors&#x20;

```bash
git clone --reference <path to reference dir> https://github.com/Xilinx/linux-xlnx.git
```
