---
title: "ezgh git repos create"
description: "Create a repository."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh git repos create

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh git repos create <name> [flags] [--wait]
```

Create an empty repository. Its name is 1 to 100 of a-z, 0-9, ., \_ and -, unique in the project, and is the last part of its clone URL. `--default-branch` is main unless set; `--merge-method` (repeat it) narrows how pull requests may be merged: merge, squash or rebase (all three unless set). `--wait` waits until it's ready and prints it.

Part of [`ezgh git repos`](/cli/reference/git-repos).

## Examples

```sh
ezgh git repos create site --wait
ezgh git repos create agent-sandbox --merge-method squash
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--default-branch` | string |  | its default branch (default main) |
| `--description` | string |  | what it's for |
| `--merge-method` | string, repeatable |  | a merge method pull requests may use: merge, squash or rebase; repeat for more |
| `--tag` | string, repeatable |  | a tag, key=value; repeat for more |
| `--wait` | boolean |  | wait until it's ready, and print it then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/git-repos-create/index.mdx
