{"meta":{"title":"Configuración de un repositorio remoto para una bifurcación","intro":"Configure un repositorio remoto que apunte al repositorio upstream en Git para sincronizar los cambios entre la bifurcación y el repositorio original.","product":"Solicitudes de incorporación de cambios","breadcrumbs":[{"href":"/es/pull-requests","title":"Solicitudes de incorporación de cambios"},{"href":"/es/pull-requests/how-tos","title":"How-tos"},{"href":"/es/pull-requests/how-tos/work-with-forks","title":"Trabajar con bifurcaciones"},{"href":"/es/pull-requests/how-tos/work-with-forks/configuring-a-remote-repository-for-a-fork","title":"Configuración de un repositorio remoto"}],"documentType":"article"},"body":"# Configuración de un repositorio remoto para una bifurcación\n\nConfigure un repositorio remoto que apunte al repositorio upstream en Git para sincronizar los cambios entre la bifurcación y el repositorio original.\n\n1. Abre Terminal o Git Bash.\n1. Muestre los remotos configurados actualmente para la bifurcación.\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. Agregue un nuevo remoto denominado _upstream_ que apunte al repositorio original.\n\n   ```shell\n   git remote add upstream https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git\n   ```\n\n1. Compruebe el nuevo repositorio upstream que especificó para su fork.\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   ```"}