Skip to content

Instantly share code, notes, and snippets.

@Bernix01
Last active June 9, 2016 02:54
Show Gist options
  • Save Bernix01/244bdf55a1b043530617863823186989 to your computer and use it in GitHub Desktop.
Save Bernix01/244bdf55a1b043530617863823186989 to your computer and use it in GitHub Desktop.
git clone https://github.com/Bernix01/leccion-git-anticorrupcion.git
cd leccion-git-anticorrupcion
git branch desarrollo
git branch produccion
touch index.htm
nano index.htm #Edita y guarda
git add index.htm
git commit -m "primer commit"
#En el escritorio de María...
git clone https://github.com/Bernix01/leccion-git-anticorrupcion.git
cd leccion-git-anticorrupcion
git checkout desarrollo
touch qsomos.htm
nano qsomos.htm #Edita y guarda
git add qsomos.htm
git commit -m "segundo commit"
#En el escritorio de Jorge, como estaba en master...
git checkout desarrollo
touch acerca.htm
nano acerca.htm #Edita y guarda
git add acerca.htm
git commit -m "tercer commit"
git checkout master
git merge desarrollo
git checkout produccion
git merge master
git push origin produccion
#En el escritorio de María...
git checkout produccion
touch contactenos.htm
nano contactenos.htm #Edita y guarda
git add contactenos.htm
git commit -m "cuarto commit"
git push origin produccion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment