
---
url: /mod/git/part.md
---
# x git part

partial repository management

## Sub Commands

| Name | Description |
| ------- | ------- |
| [x git part cl](#x-git-part-cl) | Sparse clone Git repository. Only include all files in the top-level |
| [x git part ls](#x-git-part-ls) | shortcut for `git ls-tree`. list tree object content |
| [x git part set](#x-git-part-set) | shortcut for `x git part checkout set`. Specify the files and directories for partial checkout |
| [x git part add](#x-git-part-add) | shortcut for `x git part checkout add`. Add file or folders for partial checkout |
| [x git part checkout](#x-git-part-checkout) | partial checkout management. wrapper for 'git sparse-checkout' |


### x git part cl

Sparse clone Git repository. Only include all files in the top-level


- **Usage**:

```sh
x git part cl|clone <#1>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#1` | remote repository url |


### x git part ls

shortcut for `git ls-tree`. list tree object content


- **Usage**:

```sh
x git part ls <#1>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#1` | specify ref. default is HEAD |


### x git part set

shortcut for `x git part checkout set`. Specify the files and directories for partial checkout


- **Usage**:

```sh
x git part set <#n>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#n` | file or directory |


### x git part add

shortcut for `x git part checkout add`. Add file or folders for partial checkout


- **Usage**:

```sh
x git part add <#n>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#n` | file or directory |


### x git part checkout

partial checkout management. wrapper for 'git sparse-checkout'


- **Sub Commands**:


| Name | Description |
| ------- | ------- |
| [x git part checkout init](#x-git-part-checkout-init) | Initialize partial checkout |
| [x git part checkout ls](#x-git-part-checkout-ls) | list file or folders for partial checkout |
| [x git part checkout set](#x-git-part-checkout-set) | Setup the files and directories for partial checkout |
| [x git part checkout add](#x-git-part-checkout-add) | Add file or folders for partial checkout |
| [x git part checkout disable](#x-git-part-checkout-disable) | Disable partial checkout mode. Return to full repository mode |
| [x git part checkout reapply](#x-git-part-checkout-reapply) | Reapply partial checkout mode |


### x git part checkout init

Initialize partial checkout


- **Usage**:

```sh
x git part checkout|co init
```

### x git part checkout ls

list file or folders for partial checkout


- **Usage**:

```sh
x git part checkout|co ls
```

### x git part checkout set

Setup the files and directories for partial checkout


- **Usage**:

```sh
x git part checkout|co set <#1>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#1` | file or directory name. [ default all file and directory ] |


### x git part checkout add

Add file or folders for partial checkout


- **Usage**:

```sh
x git part checkout|co add <#1>
```

- **Arguments**:


| Argument | Description |
| ------- | ------- |
| `#1` | file or directory |


### x git part checkout disable

Disable partial checkout mode. Return to full repository mode


- **Usage**:

```sh
x git part checkout|co disable
```

### x git part checkout reapply

Reapply partial checkout mode


- **Usage**:

```sh
x git part checkout|co reapply
```