---
title: "ezgh git"
description: "Hosted Git repositories, pull requests and checks."
---

> 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

{/* 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 <command>
```

A repository is cloned and pushed over HTTPS with any Git client, at its clone URL (`ezgh git repos get` shows it), signing in with an API key (`ezgh iam api-keys create`; a login with `ezgh login` isn't enough). Store the key in a profile of its own, so your login stays, and set up Git once:

```text
ezgh --profile git auth set-api-key
git config --global credential.https://*.git.ezghcloud.com.helper '!ezgh --profile git git credential-helper'
```

Pull requests are opened from a branch of the same repository, reviewed and merged here, in the console or through the API. Branch rules (in the console) decide what a merge needs.

Everything is in a project (`--project`, `EZGH_PROJECT` or the profile's). &lt;repo&gt; is a repository's ID (gtr\_…), UUID or name; &lt;number&gt; is a pull request's number.

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh git checks`](/cli/reference/git-checks) | Checks reported on commits |
| [`ezgh git credential-helper`](/cli/reference/git-credential-helper) | Give Git this profile's credential for EZGH Git repositories |
| [`ezgh git prs`](/cli/reference/git-prs) | Pull requests |
| [`ezgh git repos`](/cli/reference/git-repos) | Repositories |

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