PureTools

Guía Rápida Git

Referencia categorizada de comandos Git con descripciones y ejemplos.

Setup & Config

git init

Initialize a new repository

git clone <url>

Clone a repository

Ejemplo: git clone https://github.com/user/repo.git

git config --global user.name <name>

Set global username

Ejemplo: git config --global user.name "John Doe"

git config --global user.email <email>

Set global email

Ejemplo: git config --global user.email "john@example.com"

git config --list

List all config settings

Basic Snapshotting

git status

Show working tree status

git add <file>

Stage a file

Ejemplo: git add index.html

git add .

Stage all changes

git commit -m <msg>

Commit staged changes

Ejemplo: git commit -m "Add feature"

git commit --amend

Amend the last commit

git diff

Show unstaged changes

git diff --staged

Show staged changes

git reset <file>

Unstage a file

git rm <file>

Remove a file from tracking

git mv <old> <new>

Rename/move a file

Branching & Merging

git branch

List branches

git branch <name>

Create a new branch

Ejemplo: git branch feature/login

git branch -d <name>

Delete a branch

git checkout <branch>

Switch to branch

git checkout -b <branch>

Create and switch to branch

git switch <branch>

Switch to branch (modern)

git switch -c <branch>

Create and switch (modern)

git merge <branch>

Merge branch into current

git rebase <branch>

Rebase current onto branch

git cherry-pick <hash>

Apply a specific commit

Remote

git remote -v

List remotes with URLs

git remote add <name> <url>

Add a remote

Ejemplo: git remote add origin https://github.com/user/repo.git

git fetch

Download remote changes

git pull

Fetch and merge remote changes

git push

Push commits to remote

git push -u origin <branch>

Push and set upstream

git push --force

Force push (use with caution!)

History & Inspection

git log

Show commit history

git log --oneline

Compact log

git log --graph

Show branch graph

git show <hash>

Show commit details

git blame <file>

Show who changed each line

git reflog

Show reference log

Stashing

git stash

Stash current changes

git stash pop

Apply and remove latest stash

git stash list

List all stashes

git stash apply

Apply latest stash (keep it)

git stash drop

Remove latest stash

git stash clear

Remove all stashes

Undoing Changes

git restore <file>

Discard working directory changes

git restore --staged <file>

Unstage a file

git reset --soft HEAD~1

Undo last commit, keep changes staged

git reset --mixed HEAD~1

Undo last commit, keep changes unstaged

git reset --hard HEAD~1

Undo last commit, discard changes

git revert <hash>

Create a commit that undoes a commit

Tags

git tag

List tags

git tag <name>

Create lightweight tag

Ejemplo: git tag v1.0.0

git tag -a <name> -m <msg>

Create annotated tag

git push --tags

Push all tags to remote

¿Qué es?

Guía Rápida Git es una herramienta online gratuita que se ejecuta completamente en tu navegador. Referencia categorizada de comandos Git con descripciones y ejemplos. Ningún dato se envía a servidores — todo el procesamiento ocurre localmente en tu dispositivo, garantizando total privacidad y seguridad. Ya seas desarrollador, diseñador, estudiante o profesional, esta herramienta te ahorra tiempo al proporcionar resultados instantáneos sin necesidad de instalar software ni crear una cuenta.

Cómo usar

Usar Guía Rápida Git es sencillo y directo. Simplemente ingresa o pega tus datos en el campo de entrada, configura las opciones disponibles y haz clic en el botón de acción para procesar. El resultado aparece instantáneamente en el área de salida. Puedes copiar el resultado al portapapeles con un clic. Si necesitas empezar de nuevo, solo limpia la entrada y vuelve a intentar. La herramienta acepta una amplia variedad de entradas y maneja casos especiales de forma adecuada.

Cuándo usar

Guía Rápida Git es útil en muchos escenarios cotidianos. Los desarrolladores lo usan durante sesiones de codificación para procesar datos rápidamente sin salir del navegador. También es perfecto para tareas puntuales donde instalar una aplicación dedicada sería exagerado. Estudiantes y aprendices lo encuentran útil para entender cómo funciona el proceso subyacente. Como es basado en la web, puedes usarlo desde cualquier dispositivo — escritorio, portátil, tableta o teléfono — sin ninguna configuración.

Preguntas Frecuentes

¿Guía Rápida Git es gratuito?
Sí, Guía Rápida Git es completamente gratuito, sin límites de uso, sin necesidad de cuenta y sin anuncios que bloqueen funcionalidades. Todas las funciones están disponibles inmediatamente.
¿Mis datos están seguros al usar Guía Rápida Git?
Por supuesto. Todo el procesamiento ocurre directamente en tu navegador usando JavaScript. Tus datos nunca salen de tu dispositivo y nunca se envían a ningún servidor externo. Puedes verificarlo en la pestaña de red de tu navegador.
¿Guía Rápida Git funciona en dispositivos móviles?
Sí, la herramienta es totalmente responsiva y funciona en todos los navegadores modernos, incluyendo Chrome, Firefox, Safari y Edge, en cualquier dispositivo — escritorio, tableta o smartphone.
¿Necesito instalar algo para usar Guía Rápida Git?
No se necesita instalación. Guía Rápida Git se ejecuta completamente en tu navegador web. Solo abre la página y empieza a usarlo inmediatamente. No hay registro, descarga ni extensión de navegador necesarios.

Herramientas Relacionadas