# Configuration d’un dépôt distant pour une duplication

Configurez un pointage distant vers le référentiel en amont dans Git pour synchroniser les modifications entre votre fourche et le référentiel d’origine.

1. Ouvrez votre terminal ou Git Bash.
1. Répertoriez les distances actuellement configurées pour votre fourche.

   ```shell
   $ git remote -v
   > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (fetch)
   > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (push)
   ```

1. Ajoutez un nouveau serveur distant nommé _en amont_ qui pointe vers le référentiel d’origine.

   ```shell
   git remote add upstream https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git
   ```

1. Vérifiez le nouveau référentiel en amont que vous avez spécifié pour votre fourche.

   ```shell
   $ git remote -v
   > origin    https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (fetch)
   > origin    https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (push)
   > upstream  https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)
   > upstream  https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)
   ```