Last active
August 27, 2025 17:57
-
-
Save paco-ruvalcaba/8ad726eace9e07f66e30272c63fdb77f to your computer and use it in GitHub Desktop.
GIT cheat sheet
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
| @startmindmap | |
| *[#lightblue] ""git"" | |
| **[#lightblue] ""add"" | |
| *** ""archivo.txt"" | |
| ***[#lightblue] ""."" | |
| ****_ Agregar todos los archivos | |
| **[#lightblue] ""branch"" | |
| *** branch_name | |
| ****_ Crea una rama con nombre ""branch_name"" | |
| ***[#lightblue] ""-d"" | |
| **** branch_name | |
| *****_ Elimina la rama con nombre ""branch_name"" | |
| ***[#lightblue] ""-v"" | |
| ****_ Muestra el ultimo ""commit"" en cada rama | |
| ***[#lightblue] ""-a"" | |
| ****_ Muestra todas las ramas, locales y remotas | |
| **[#lightblue] ""checkout"" | |
| ***[#lightblue] ""-b"" | |
| **** ""branch_name"" | |
| *****_ Crea una rama y se mueve hacia ella | |
| *** branch_name | |
| ****_ Se mueve a una rama con nombre ""branch_name"" | |
| **[#lightblue] ""clone"" | |
| *** ""https://github.com/libgit2/libgit2"" | |
| ****_ Copiar-clonar un repositorio \nen linea | |
| **[#lightblue] ""commit"" | |
| ***[#lightblue] ""-m"" | |
| **** "Texto" | |
| ***[#lightblue] ""-a -m"" | |
| **** "Texto" | |
| **[#lightblue] ""diff"" | |
| ***_ <size:9>Para ver lo que se ha modificado pero no se ha "preparado" | |
| **[#lightblue] ""fetch"" | |
| **[#lightblue] ""init"" | |
| **[#lightblue] ""log"" | |
| ***[#lightblue] ""--oneline"" | |
| ****[#lightpink] ""--decorate"" | |
| *****[#lightpink] ""--graph"" | |
| ******[#lightpink] ""--all"" | |
| ***[#lightblue] ""--pretty="%h - %s" "" | |
| **[#lightblue] merge | |
| ***[#lightblue] branch_name | |
| ****_ Fusiona ""branch_name"" a la rama actual | |
| **[#orange] ""mv"" | |
| *** ""nombre anterior"" | |
| **** ""nuevo nombre"" | |
| ***_ Mover archivo o cambiar nombre | |
| **[#lightblue] ""pull"" | |
| *** ""origin"" | |
| **** ""master"" | |
| **[#lightblue] ""push"" | |
| *** ""origin"" | |
| ****[#lightblue] ""--tags"" | |
| **** ""master"" | |
| **[#lightblue] ""remote"" | |
| ***[#lightblue] ""add origin"" | |
| **** ""https://github.com/paco-ruvalcaba/repository"" | |
| ***[#lightblue] ""-v"" | |
| **[#lightblue] ""reset"" | |
| *** ""nombre_archiv.ext"" | |
| ****_ Quita un archivo del ""stage"" | |
| **[#lightblue] ""rm"" | |
| ***_ Quitar archivo de la area de staging | |
| *** ""nombre_archivo.ext"" | |
| **[#lightblue] ""show"" | |
| *** ""nombre_etiqueta"" | |
| **[#lightblue] ""status"" | |
| ***_ Muestras el estado de los archivos: | |
| ****_ Si se estan siguiendo | |
| ****_ Si se confirmo | |
| **[#lightblue] ""tag"" | |
| ***_ Lista todas las etiquetas | |
| ***[#lightblue] ""-a"" | |
| **** ""nombre_etiqueta"" | |
| ***** ""commit_checksum"" | |
| *****[#lightblue] ""-m"" | |
| ****** "mensaje" | |
| *** nombre_etiqueta | |
| **[#orange] ""cd"" | |
| ***_ Cambiar directorio | |
| *** ""-"" | |
| ****_ Cambiar al directorio anterior | |
| **[#orange] ""copy"" | |
| ***[#orange] ""con"" | |
| **** ""myfile.txt"" | |
| **[#orange] echo | |
| *** 'My Project' | |
| **** > | |
| ***** README | |
| **[#orange] ""ls"" | |
| ***_ Hace un listado de todo el directorio | |
| **[#orange] ""mkdir"" | |
| ***_ Crear directorio | |
| **[#orange] ""pwd"" | |
| ***_ Ver la ruta actual completa | |
| **[#orange] ""rm"" | |
| *** ""file_name.ext"" | |
| ****_ Borra un archivo ""file_name.ext"" de la carpeta actual | |
| **** ""nombre_carpeta/"" | |
| *****_ Borra ""nombre_carpeta"" \nsi está vacía | |
| *** ""-r"" | |
| **** ""nombre_carpeta/"" | |
| *****_ Borra ""nombre_carpeta/"" y \ntodos los archivos que contiene | |
| @endmindmap |
Author
paco-ruvalcaba
commented
May 19, 2025
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment