From 47c904558034a84239476439226832c0013b9f11 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Tue, 11 Aug 2020 13:03:54 -0400 Subject: [PATCH] --- Workflows-y-acciones-colaborativas.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Workflows-y-acciones-colaborativas.md b/Workflows-y-acciones-colaborativas.md index 3ad6a8c..bc334a2 100644 --- a/Workflows-y-acciones-colaborativas.md +++ b/Workflows-y-acciones-colaborativas.md @@ -76,16 +76,26 @@ Para trabajar con proyectos de terceros **actualizar siempre** el repositorio local con el principal, antes de hacer o subir cambios. ``` -# git clone [ssh o HTTPS] -git remote add origin [ssh o HTTPS] -git remote add upstream +# git init +# git config --local user.name "nombre" +# git config --local user.email "mail" +# git config --local core.sshCommand "ssh -i ~/.ssh/llave_ssh -F /dev/null" -git fetch upstream -git merge origin/upstream +# Agregar como origen el repositorio personal, Fork de otro repositorio +git remote add origin gitea@gitea.kickto.net/jp.av.dev/testingFork.git +# Agregar como upstream el repositorio original, Forked +git remote add upstream https://gitea.kickto.net/Fuzan/testingFork.git + +# Descargar y fusionar repositorio Fork (personal) git fetch origin git merge origin/master +# Descargar y fusionar cambios del repositorio Forked +git fetch upstream +git merge upstream/master + +# Subir los cambios a Repositorio Fork git push origin master ```