{"meta":{"title":"Configuration d’un dépôt distant pour une duplication","intro":"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.","product":"Demandes de tirage","breadcrumbs":[{"href":"/fr/pull-requests","title":"Demandes de tirage"},{"href":"/fr/pull-requests/how-tos","title":"Guide pratique"},{"href":"/fr/pull-requests/how-tos/work-with-forks","title":"Travailler avec des forks"},{"href":"/fr/pull-requests/how-tos/work-with-forks/configuring-a-remote-repository-for-a-fork","title":"Configurer un dépôt distant"}],"documentType":"article"},"body":"# Configuration d’un dépôt distant pour une duplication\n\nConfigurez 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.\n\n1. Ouvrez votre terminal ou Git Bash.\n1. Répertoriez les distances actuellement configurées pour votre fourche.\n\n   ```shell\n   $ git remote -v\n   > origin  https://github.com/YOUR-USERNAME/YOUR-FORK.git (fetch)\n   > origin  https://github.com/YOUR-USERNAME/YOUR-FORK.git (push)\n   ```\n\n1. Ajoutez un nouveau serveur distant nommé _en amont_ qui pointe vers le référentiel d’origine.\n\n   ```shell\n   git remote add upstream https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git\n   ```\n\n1. Vérifiez le nouveau référentiel en amont que vous avez spécifié pour votre fourche.\n\n   ```shell\n   $ git remote -v\n   > origin    https://github.com/YOUR-USERNAME/YOUR-FORK.git (fetch)\n   > origin    https://github.com/YOUR-USERNAME/YOUR-FORK.git (push)\n   > upstream  https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)\n   > upstream  https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)\n   ```"}