This content originally appeared on DEV Community and was authored by Andres C
Iniciar un repositorio
git init
Clonar un repositorio
git clone <url_repositorio>
Ver el estado del repositorio
git status
Agregar un archivo al área de preparación (stage)
git add <archivo>
Agregar todos los cambios al área de preparación
git add .
Confirmar cambios con un mensaje
git commit -m "mensaje"
Listar ramas
git branch
Crear una nueva rama
git branch <rama>
Cambiar a una rama específica
git checkout <rama>
Fusionar una rama con la rama actual
git merge <rama>
Ver los remotos configurados
git remote -v
Obtener cambios de una rama remota
git pull origin <rama>
Enviar cambios a una rama remota
git push origin <rama>
Ver el historial de confirmaciones
git log
Ver el historial de confirmaciones en una sola línea
git log --oneline
Revertir una confirmación específica
git revert <commit>
Restablecer a una confirmación específica
git reset <commit>
Listar las etiquetas
git tag
Crear una etiqueta anotada
git tag -a v1.0 -m "etiqueta"
Configurar el nombre de usuario global
git config --global user.name "nombre"
Configurar el correo electrónico global
git config --global user.email "correo"
This content originally appeared on DEV Community and was authored by Andres C
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Andres C | Sciencx (2024-08-20T14:11:29+00:00) Comandos GIT. Retrieved from https://www.scien.cx/2024/08/20/comandos-git/
" » Comandos GIT." Andres C | Sciencx - Tuesday August 20, 2024, https://www.scien.cx/2024/08/20/comandos-git/
HARVARDAndres C | Sciencx Tuesday August 20, 2024 » Comandos GIT., viewed ,<https://www.scien.cx/2024/08/20/comandos-git/>
VANCOUVERAndres C | Sciencx - » Comandos GIT. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/20/comandos-git/
CHICAGO" » Comandos GIT." Andres C | Sciencx - Accessed . https://www.scien.cx/2024/08/20/comandos-git/
IEEE" » Comandos GIT." Andres C | Sciencx [Online]. Available: https://www.scien.cx/2024/08/20/comandos-git/. [Accessed: ]
rf:citation » Comandos GIT | Andres C | Sciencx | https://www.scien.cx/2024/08/20/comandos-git/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.