---
title: Git
description: >-
  A free, open-source version control system for managing projects of all sizes
  with speed and efficiency.
breadcrumbs: Docs > Integrations > Git
---

# Git

{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

{% image
   source="https://docs.dd-static.net/images/integrations/git/git_event.c2f49103dbc68bfe2893e993622ede20.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/integrations/git/git_event.c2f49103dbc68bfe2893e993622ede20.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Git event" /%}

## Overview{% #overview %}

Capture Git commits directly from your Git server to:

- Keep track of code changes in real time.
- Add code change markers on all your dashboards.
- Discuss code changes with your team.

## Setup{% #setup %}

### Installation{% #installation %}

1. Create a new application key for Git: [Generate Application Key](https://app.datadoghq.com/organization-settings/api-keys)

1. Download the Datadog Git webhook:

   ```shell
   sudo easy_install dogapi
   curl -L https://raw.github.com/DataDog/dogapi/master/examples/git-post-receive-hook > post-receive
   ```

1. Set up Git with your [Datadog keys](https://app.datadoghq.com/organization-settings/api-keys):

   ```shell
   git config datadog.api <YOUR_DATADOG_API_KEY>
   git config datadog.application <YOUR_DATADOG_APP_KEY>
   ```

1. Activate the hook in your Git repository with the `<GIT_REPOSITORY_NAME>`:

   ```shell
   install post-receive <GIT_REPOSITORY_NAME>/.git/hooks/post-receive
   ```

1. [Install the Datadog-Git Integration](https://app.datadoghq.com/integrations/git)

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
