# Add Git credentials

Git credentials added here will be usable by any admin-level user, though they will not be able to view the actual credentials directly.

## Adding your credentials

To add your Git credentials, from the [Shared credentials](https://docs.portainer.io/admin/settings/credentials) page click **Add credentials**, then select the **Git** option.&#x20;

Enter a name for your shared credentials, then select your Git provider or select **Custom** if no options fit your authentication type. Fill in your Username and access token or password.&#x20;

{% hint style="info" %}
Ensure your token has repository read permissions (scopes), otherwise authentication will fail. See the [Git authentication token permissions FAQ](https://docs.portainer.io/sts/faqs/getting-started/what-scopes-are-required-for-github-gitlab-and-bitbucket-tokens) for more information.
{% endhint %}

<figure><img src="https://679325054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdgxA76kWxcRmwybM8Ft%2Fuploads%2FSQbQ3k4oUmsT5jyhrLQO%2F2.40.0-git-credentials.png?alt=media&#x26;token=6876d8dc-6c27-4df3-80f3-87718598600c" alt=""><figcaption></figcaption></figure>

Once you've entered the relevant details, click **Add credentials** to save the entry.
