Skip to content

Instantly share code, notes, and snippets.

@czegarram
Last active August 29, 2015 13:56
Show Gist options
  • Save czegarram/9328304 to your computer and use it in GitHub Desktop.
Save czegarram/9328304 to your computer and use it in GitHub Desktop.
Comandos Útiles Git
  • Clonar un branch: git checkout -b <new_local_branch>
  • Push a un nuevo branch: git push -u origin <new_branch_to_push_central>
  • Clonar un branch externo en local: git branch --track <branch-name> <origin/branch-name>
  • Log de Git: git log
  • Regresar a un commit anterior: git branch branchname <sha1-of-commit>
  • Crear un branch a partir de un commit anterior: git branch branchname HEAD~3 (Numero que especifica cuantos commits for debajo del ultimo commit)
  • Merge Tool: git config --global merge.tool kdiff3 (Recomiendo este merge tool, primero se tiene que instalar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment