> For the complete documentation index, see [llms.txt](https://docs.zerve.ai/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerve.ai/guide/source-control-git/install-github-enterprise-ghes-app.md).

# Install Github Enterprise (GHES) App

**Step 1: Set Up the Zerve Application in your Github Enterprise Server account.**

The first part of integrating Zerve with your Github Enterprise Server is to create an application in your Github Enterprise Server account.

1. **Create the Application:** Navigate to the following URL in your GHES server account, Navigate to https\:///organizations//settings/apps. This page can starting from the top right menu under your avatar and selecting **Your Organizations** -> **\[Organization]** -> **Settings** -> **Developer Settings** -> **Github Apps**. Click on the **New Github App** button.
2. **Configure General Application Settings**: The following configuration settings will need to be entered to configure the application correctly.
   1. **Github App Name**: Zerve AI
   2. **Homepage URL**: <https://zerve.ai>
   3. **Setup URL (optional):** <https://user.api.zerve.ai/github/post-install-url>
   4. **Redirect on update:** checked
   5. **Webhook Active**: checked
   6. **Webhook URL**: <https://user.api.zerve.ai/github/webhook>
   7. **Generate a new client secret:** Save the value of the new secret for later.
   8. **Generate a private key:** Download the of the private key for later.
3. **Configure Permissions and Events:** The following permissions and events will need to be selected.
   * **Repository Permissions**: Contents (read/write), Pull Requests (read/write)
   * **Subscribe to Events:** Installation Target, Pull Request

**Step 2: Enter Github Enterprise Installation Details**

Next, in the Zerve application, navigate to the organization settings and enter the details for your Github Enterprise installation. The following are the steps:

1. **Navigate to Organization Settings:** Select your organization settings. The user can find this by clicking on the Organization selection dropdown in the top left corner. After selecting your organization, click the settings link in the Organization context.&#x20;
2. **Select Git Integration:** Go to the **Git Integration** section on the settings page and select **Github Enterprise Server** in the **Git Management** Service dropdown.
3. **Enter Installation Details:** A modal will pop up where you enter the details of your Github App Installation.

<figure><img src="/files/AXz67bOBUo1PZF33PgBu" alt=""><figcaption></figcaption></figure>

4. **Click Save:** Save the application details.
5. **Grant Repository Access:** See **step 2** in the **Github Cloud Integration Setup**. The rest of the steps for Github Enterprise are the same as for Github Cloud.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zerve.ai/guide/source-control-git/install-github-enterprise-ghes-app.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
