Skip to content

Instantly share code, notes, and snippets.

@lfborjas
Created October 18, 2010 06:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save lfborjas/631806 to your computer and use it in GitHub Desktop.
Save lfborjas/631806 to your computer and use it in GitHub Desktop.
Una breve descripción del modelo fork+pull

Para colaborar en un repositorio mediante el modelo fork+pull (se presupone que ya tenés instalado git )

  1. Hacer fork en github.com
  2. Te vas a tu fork
  3. En tu compu, ejecutás git clone git@github.com:YamilG/lfborjas.github.com.git
  4. Te creará una carpeta llamada lfborjas.github.com, hacés cd a ella y comenzás a hacer tus cambios
  5. Cuando querás ver qué has cambiado, hacés git status y para cambios específicos, git diff
  6. Cuando estés listo para hacer un snapshot de tus cambios, agregarlos al historial git, hacés un git commit -am "mensaje descriptivo", el switch -am es un atajo para agregar todos los archivos que git ya conocía; si agregás otros archivos, tendrás que hacer git add archivo.ext otroArchivo.ext antes de hacer un commit.
  7. Cuando terminés de hacer commits y estés listo para que integremos cambios, hacés un git push origin master y luego me mandás una pull request
  8. ...
  9. Profit!
@YamilG
Copy link

YamilG commented Oct 18, 2010

YamilG-MacBook:git yamilgonzales$ git clone git@github.com:YamilG/lfborjas.github.com.git
Cloning into lfborjas.github.com...
ssh: connect to host github.com port 22: Operation timed out
fatal: The remote end hung up unexpectedly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment