Skip to content

FB - Git association - Better explain private key and private repo step #8093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Klicken Sie abschließend auf `Create Repository`{.action}.

Kopieren Sie die Adresse Ihres GitHub-Repositorys. Diese muss folgende Form haben:

- `https://github.com/<username>/<repository_name.git>` für ein öffentliches Repository.
- `git@github.com:<username>/<repository_name.git>` für ein privates Repository.
- `https://github.com/<username>/<repository_name>.git` für ein öffentliches Repository.
- `git@github.com:<username>/<repository_name>.git` für ein privates Repository.

Kehren Sie zum Git-Zuordnungsformular zurück und fügen Sie die Adresse Ihres GitHub-Repositorys in das Feld `Repository`{.action} ein. Wenn das Adressformat nicht korrekt ist, wird die folgende Fehlermeldung angezeigt:

Expand Down Expand Up @@ -129,7 +129,7 @@ Am unteren Rand des Git-Zuordnungsformulars wird ein Abschnitt `Automatische Ber
Bevor Sie das Git-Zuordnungsformular bestätigen, überprüfen Sie:

- Ihr SSH-Schlüssel wurde erfolgreich in Ihrem GitHub-Konto gespeichert.
- Die Adresse Ihres GitHub-Repositorys ist korrekt. Sie muss im Format `https://github.com/<username>/<repository_name.git>` vorliegen.
- Die Adresse Ihres GitHub-Repositorys ist korrekt. Sie muss im Format `https://github.com/<username>/<repository_name>.git` vorliegen.
- Der Zweigname des GitHub-Repositorys ist korrekt.
- Das Installationsverzeichnis ist leer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Finally, click `Create Repository`{.action}.

Copy the address of your GitHub repository. It must be of the form:

- `https://github.com/<username>/<repository_name.git>` for a public repository.
- `git@github.com:<username>/<repository_name.git>` for a private repository.
- `https://github.com/<username>/<repository_name>.git` for a public repository.
- `git@github.com:<username>/<repository_name>.git` for a private repository.

Return to the Git association form and paste the address of your GitHub repository into the `Deposit`{.action} field. If the address format is not correct, the following error message appears:

Expand Down Expand Up @@ -126,7 +126,7 @@ At the bottom of the Git association form, a `Configuring automatic deployment`{
Before validating the Git association form, make sure that:

- Your SSH key has been saved in your GitHub account.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name.git>`.
- The address of your GitHub repository is correct. It must be of the form `https://github.com/<username>/<repository_name>.git`.
- The name of the GitHub repository branch is correct.
- Your installation directory is empty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Haga clic en `Create Repository`{.action}.

Copie la dirección de su repositorio de GitHub. Debe tener el siguiente formato:

- `https://github.com/<username>/<repository_name.git>` para un depósito público.
- `git@github.com:<username>/<repository_name.git>` para un depósito privado.
- `https://github.com/<username>/<repository_name>.git` para un depósito público.
- `git@github.com:<username>/<repository_name>.git` para un depósito privado.

Vuelva al formulario de asociación de Git y pegue la dirección de su repositorio de GitHub en el campo `Repositorio`. Si el formato de la dirección no es correcto, aparecerá el siguiente mensaje de error:

Expand Down Expand Up @@ -128,7 +128,7 @@ En la parte inferior del formulario de asociación de Git, aparece la sección `
Antes de validar el formulario de asociación de Git, asegúrese de que:

- La llave SSH se ha registrado correctamente en su cuenta de GitHub.
- La dirección de su repositorio de GitHub es correcta. Debe tener el formato `https://github.com/<username>/<repository_name.git>`.
- La dirección de su repositorio de GitHub es correcta. Debe tener el formato `https://github.com/<username>/<repository_name>.git`.
- El nombre de la rama del repositorio de GitHub es correcto.
- El directorio de instalación está vacío.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Haga clic en `Create Repository`{.action}.

Copie la dirección de su repositorio de GitHub. Debe tener el siguiente formato:

- `https://github.com/<username>/<repository_name.git>` para un depósito público.
- `git@github.com:<username>/<repository_name.git>` para un depósito privado.
- `https://github.com/<username>/<repository_name>.git` para un depósito público.
- `git@github.com:<username>/<repository_name>.git` para un depósito privado.

Vuelva al formulario de asociación de Git y pegue la dirección de su repositorio de GitHub en el campo `Repositorio`. Si el formato de la dirección no es correcto, aparecerá el siguiente mensaje de error:

Expand Down Expand Up @@ -128,7 +128,7 @@ En la parte inferior del formulario de asociación de Git, aparece la sección `
Antes de validar el formulario de asociación de Git, asegúrese de que:

- La llave SSH se ha registrado correctamente en su cuenta de GitHub.
- La dirección de su repositorio de GitHub es correcta. Debe tener el formato `https://github.com/<username>/<repository_name.git>`.
- La dirección de su repositorio de GitHub es correcta. Debe tener el formato `https://github.com/<username>/<repository_name>.git`.
- El nombre de la rama del repositorio de GitHub es correcto.
- El directorio de instalación está vacío.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Enfin, cliquez sur `Create Repository`{.action}.

Copiez l'adresse de votre dépôt GitHub. Celle-ci doit être de la forme :

- `https://github.com/<username>/<repository_name.git>` pour un dépôt public.
- `git@github.com:<username>/<repository_name.git>` pour un dépôt privé.
- `https://github.com/<username>/<repository_name>.git` pour un dépôt public.
- `git@github.com:<username>/<repository_name>.git` pour un dépôt privé.

Retournez sur le formulaire d'association de Git et collez l'adresse de votre dépôt GitHub dans le champ `Dépôt`. Si le format de l'adresse n'est pas correct, le message d'erreur suivant apparaît :

Expand Down Expand Up @@ -126,7 +126,7 @@ En bas du formulaire d'association de Git, une section `Configuration du déploi
Avant de valider le formulaire d'association de Git, assurez-vous que :

- Votre clé SSH a bien été enregistrée dans votre compte GitHub.
- L'adresse de votre dépôt GitHub est correcte. Elle doit être de la forme `https://github.com/<username>/<repository_name.git>`.
- L'adresse de votre dépôt GitHub est correcte. Elle doit être de la forme `https://github.com/<username>/<repository_name>.git`.
- Le nom de la branche du dépôt GitHub est correct.
- Votre répertoire d'installation est vide.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Configurer et utiliser Git avec son hébergement web OVHcloud"
excerpt: "Découvrez comment configurer et utiliser Git avec votre hébergement web dans votre espace client OVHcloud"
updated: 2025-01-31
updated: 2025-07-02
---

## Objectif
Expand Down Expand Up @@ -72,10 +72,10 @@ Enfin, cliquez sur `Create Repository`{.action}.

Copiez l'adresse de votre dépôt GitHub. Celle-ci doit être de la forme :

- `https://github.com/<username>/<repository_name.git>` pour un dépôt public.
- `git@github.com:<username>/<repository_name.git>` pour un dépôt privé.
Retournez sur le formulaire d'association de Git et collez l'adresse de votre dépôt GitHub dans le champ `Dépôt`. Si le format de l'adresse n'est pas correct, le message d'erreur suivant apparaît :
- `https://github.com/<username>/<repository_name>.git` pour un dépôt public.
- `git@github.com:<username>/<repository_name>.git` pour un dépôt privé.

Retournez sur le formulaire d'association de Git et collez l'adresse de votre dépôt GitHub dans le champ `Dépôt`. Si le format de l'adresse n'est pas correct, le message d'erreur suivant apparaît :

![Multisite](/pages/assets/screens/control_panel/product-selection/web-cloud/web-hosting/multisite/error-wrong-git-branch-name.png){.thumbnail}

Expand All @@ -90,19 +90,29 @@ Définissez maintenant la branche de votre dépôt GitHub. La branche par défau

Retournez sur le formulaire d'association de Git de votre espace client OVHcloud et indiquez le nom de la nouvelle branche que vous venez de créer.

#### Associer une clé SSH à GitHub (uniquement pour les dépôts GitHub privés) <a name="linkSSHKey"></a>
Si vous renseignez l'adresse d'un dépôt GitHub privé (de type `git@github.com:<username>/<repository_name>.git`), un champ `SSH key` (clé SSH) s'affichera sous le champ `Branch`.

> [!primary]
>
> La génération d'une clé SSH est une étape cruciale, car elle établit une connexion sécurisée et chiffrée entre le répertoire de votre site web et le dépôt GitHub. Cette clé assure que les transferts de données et les modifications de code se font de manière sûre et authentifiée, prévenant les accès non autorisés et garantissant l'intégrité du code.
![Multisite](/pages/assets/screens/control_panel/product-selection/web-cloud/web-hosting/multisite/field-ssh-key.png){.thumbnail}

Pour configurer votre clé SSH, consultez l'étape « Associer une clé SSH à GitHub (uniquement pour les dépôts GitHub privés) » ci-dessous.

#### Associer une clé SSH à GitHub (uniquement pour les dépôts GitHub privés) <a name="linkSSHKey"></a>

> [!primary]
>
> **Pourquoi la clé SSH est-elle nécessaire uniquement pour un dépôt privé ?**
>
> Lorsque votre dépôt GitHub est public, les fichiers peuvent être récupérés sans authentification, ce qui signifie que Git peut cloner et mettre à jour le code sans avoir besoin d'une clé SSH. En revanche, si votre dépôt est privé, GitHub exige une authentification pour y accéder. La clé SSH permet alors d’établir cette connexion sécurisée et de garantir que seuls les utilisateurs autorisés puissent interagir avec le dépôt.

Copiez et enregistrez la clé SSH sur votre compte GitHub. Cela permet d'établir une connexion sécurisée sans nécessiter de saisie de mot de passe à chaque opération Git que vous serez amené à effectuer.
> [!primary]
>
> La génération d'une clé SSH est une étape cruciale, car elle établit une connexion sécurisée et chiffrée entre le répertoire de votre site web et le dépôt GitHub. Cette clé assure que les transferts de données et les modifications de code se font de manière sûre et authentifiée, prévenant les accès non autorisés et garantissant l'intégrité du code.

Copiez votre clé SSH en cliquant sur le bouton à droite.

![Multisite](/pages/assets/screens/control_panel/product-selection/web-cloud/web-hosting/multisite/field-ssh-key-copy.png){.thumbnail}

Enregistrez la clé SSH sur votre compte GitHub :

- Connectez-vous à votre compte GitHub.
- Cliquez sur votre image de profil en haut à droite, puis sur `Settings`{.action}.
Expand All @@ -126,7 +136,7 @@ En bas du formulaire d'association de Git, une section `Configuration du déploi
Avant de valider le formulaire d'association de Git, assurez-vous que :

- Votre clé SSH a bien été enregistrée dans votre compte GitHub.
- L'adresse de votre dépôt GitHub est correcte. Elle doit être de la forme `https://github.com/<username>/<repository_name.git>`.
- L'adresse de votre dépôt GitHub est correcte. Elle doit être de la forme `https://github.com/<username>/<repository_name>.git`.
- Le nom de la branche du dépôt GitHub est correct.
- Votre répertoire d'installation est vide.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Infine clicca su `Create Repository`{.action}.

Copia l'indirizzo del tuo repository GitHub. La forma deve essere:

- `https://github.com/<username>/<repository_name.git>` per un deposito pubblico.
- `git@github.com:<username>/<repository_name.git>` per un deposito privato.
- `https://github.com/<username>/<repository_name>.git` per un deposito pubblico.
- `git@github.com:<username>/<repository_name>.git` per un deposito privato.

Tornare al modulo di associazione di Git e incollare l'indirizzo del repository GitHub nel campo `Repository`{.action}. Se il formato dell'indirizzo non è corretto, viene visualizzato il seguente messaggio di errore:

Expand Down Expand Up @@ -128,7 +128,7 @@ Nella parte inferiore del modulo di associazione di Git, viene visualizzata la s
Prima di convalidare il modulo di associazione di Git, assicurarsi che:

- La chiave SSH è stata registrata correttamente nel tuo account GitHub.
- L'indirizzo del tuo repository GitHub è corretto. Il formato deve essere `https://github.com/<username>/<repository_name.git>`.
- L'indirizzo del tuo repository GitHub è corretto. Il formato deve essere `https://github.com/<username>/<repository_name>.git`.
- Il nome del ramo del repository GitHub è corretto.
- La directory di installazione è vuota.

Expand Down
Loading