---
title: Enable or disable Databricks Git folders
description: Learn how to enable or disable Databricks Git folders using the Databricks CLI or REST API.
canonical_url: https://docs.databricks.com/aws/en/repos/enable-disable-repos-with-api
---

# Enable or disable Databricks Git folders

Databricks Git folders are enabled by default for new workspaces. Workspace admins can enable or disable this feature using a notebook or the Databricks CLI.

## <a id="notebook" />Use a notebook to enable or disable Git folders

To enable Git folders, import and run the following notebook in your workspace:

#### Enable a Databricks Git folder

[Get notebook](https://docs.databricks.com/notebooks/source/repos/turn-on-repos.html)

## <a id="cli" />Use the Databricks CLI to enable or disable Git folders

To enable Git folders:

```bash
databricks workspace-conf set-status --json '{"enableProjectTypeInWorkspace": "true"}'
```

To disable Git folders:

```bash
databricks workspace-conf set-status --json '{"enableProjectTypeInWorkspace": "false"}'
```
