Git

Git Atajos

Referencia de comandos de la CLI de Git para control de versiones — staging, commits, ramas y operaciones remotas.

Source: Documentación oficial · Actualizado 2026-06

Atajos
5
Categorías

Guía del cheat sheet

Git shortcuts worth learning first

Esta página reúne 32 atajos de teclado buscables para Git en 5 categorías. Empieza por las categorías principales y después imprime la ficha si quieres tenerla a mano.

  • git initgitinit
  • git statusgitstatus
  • git branch (list)gitbranch
  • git remote -v (list remotes)gitremote-v
  • git loggitlog
  • git clone <url>gitclone<url>

Configuración e init

4 atajos
git init
gitinit
git clone <url>
gitclone<url>
git config --global user.name
gitconfig--globaluser.name
git config --global user.email
gitconfig--globaluser.email

Staging y commit

8 atajos
git status
gitstatus
git add <file>
gitadd<file>
git add . (stage all)
gitadd.
git commit -m "msg"
gitcommit-m"msg"
git commit --amend
gitcommit--amend
git reset HEAD <file> (unstage)
gitresetHEAD<file>
git diff (unstaged changes)
gitdiff
git diff --staged
gitdiff--staged

Ramas

7 atajos
git branch (list)
gitbranch
git branch <name> (create)
gitbranch<name>
git checkout <branch>
gitcheckout<branch>
git checkout -b <branch> (create+switch)
gitcheckout-b<branch>
git merge <branch>
gitmerge<branch>
git branch -d <branch> (delete)
gitbranch-d<branch>
git rebase <branch>
gitrebase<branch>

Remoto

6 atajos
git remote -v (list remotes)
gitremote-v
git fetch
gitfetch
git pull
gitpull
git push
gitpush
git push -u origin <branch>
gitpush-uorigin<branch>
git push --force-with-lease
gitpush--force-with-lease

Registro e historial

7 atajos
git log
gitlog
git log --oneline
gitlog--oneline
git log --graph --oneline
gitlog--graph--oneline
git show <commit>
gitshow<commit>
git stash
gitstash
git stash pop
gitstashpop
git reset --hard HEAD
gitreset--hardHEAD

Preguntas frecuentes

¿Cuál es la forma más rápida de encontrar atajos de Git en esta página?

Usa el cuadro de búsqueda o pulsa /, luego escribe una acción como git init.

¿Puedo imprimir esta hoja de atajos de Git?

Sí. Usa el botón Imprimir / PDF o el comando de impresión del navegador para guardar una hoja compacta.

¿Esta página incluye atajos de Windows y Mac para Git?

Sí. Usa las pestañas de SO para cambiar entre atajos de Windows y macOS. Por ejemplo, git init es git init en Windows y git init en macOS donde esté disponible.

Ver también

Ningún atajo coincide con la búsqueda.