Guía Rápida Git
Referencia categorizada de comandos Git con descripciones y ejemplos.
Setup & Config
git initInitialize 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 --listList all config settings
Basic Snapshotting
git statusShow 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 --amendAmend the last commit
git diffShow unstaged changes
git diff --stagedShow 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 branchList 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 -vList remotes with URLs
git remote add <name> <url>Add a remote
Ejemplo: git remote add origin https://github.com/user/repo.git
git fetchDownload remote changes
git pullFetch and merge remote changes
git pushPush commits to remote
git push -u origin <branch>Push and set upstream
git push --forceForce push (use with caution!)
History & Inspection
git logShow commit history
git log --onelineCompact log
git log --graphShow branch graph
git show <hash>Show commit details
git blame <file>Show who changed each line
git reflogShow reference log
Stashing
git stashStash current changes
git stash popApply and remove latest stash
git stash listList all stashes
git stash applyApply latest stash (keep it)
git stash dropRemove latest stash
git stash clearRemove all stashes
Undoing Changes
git restore <file>Discard working directory changes
git restore --staged <file>Unstage a file
git reset --soft HEAD~1Undo last commit, keep changes staged
git reset --mixed HEAD~1Undo last commit, keep changes unstaged
git reset --hard HEAD~1Undo last commit, discard changes
git revert <hash>Create a commit that undoes a commit
Tags
git tagList tags
git tag <name>Create lightweight tag
Ejemplo: git tag v1.0.0
git tag -a <name> -m <msg>Create annotated tag
git push --tagsPush 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.