---
title: "ezgh git prs create"
description: "Open a pull request."
---

> 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 prs 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 prs create <repo> --head <branch> --title <title> [--base <branch>] [--body text] [--draft] [flags]
```

Open a pull request to merge `--head` into `--base` (the repository's default branch unless set), both branches of the repository.

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

## Examples

```sh
ezgh git prs create site --head agent/fix-header --title "Fix the header"
ezgh git prs create site --head release/2 --base main --title "Release 2" --draft
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--base` | string |  | the branch to merge into (default the repository's default branch) |
| `--body` | string |  | its description |
| `--draft` | boolean |  | open it as a draft, which can't be merged |
| `--head` | string |  | the branch with the changes |
| `--title` | string |  | its title |

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

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