Skip to main content

Enterprise Server 3.22 actualmente está disponible como versión candidata para lanzamiento.

Configuración de un repositorio remoto para una bifurcación

Configure un repositorio remoto que apunte al repositorio upstream en Git para sincronizar los cambios entre la bifurcación y el repositorio original.

  1. Abre Terminal o Git Bash.

  2. Muestre los remotos configurados actualmente para la bifurcación.

    $ git remote -v
    > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (fetch)
    > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (push)
    
  3. Agregue un nuevo remoto denominado upstream que apunte al repositorio original.

    git remote add upstream https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git
    
  4. Compruebe el nuevo repositorio upstream que especificó para su fork.

    $ 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)