Last active
December 28, 2020 02:19
-
-
Save yoandresaav/411f51ae5c5ebcddb34df08e8edd7202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clonar un repositorio de github | |
$ git clone <nombre del repo> | |
Listas las ramas y ver la activa | |
$ git branch | |
Crear una rama a partir de la rama actual | |
$ git checkout -b NombreDeLaRama | |
Guardar el Trabajo | |
$ git commit -am 'trabajo realizado' | |
Agregar un archivo | |
$ git add nombre_del_archivo | |
Agregar todos los nuevos archivos | |
$ git add . | |
Saber el status del proyecto | |
$ git status | |
Para subir una rama a github | |
$ git push | |
Para descargar los cambios de github, en la rama master | |
$ git pull | |
Eliminar rama | |
$ git branch -d NombreRama | |
Comandos avanzados de git | |
Para regresar un remoto a un commit | |
$ git reset --hard c396ee1a18b52e05c5b5ae2408b50d0683207010 | |
$ git push --force origin HEAD # resetea el repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment