Alias para Git

Algunos alias útiles para Git
# Tipical alias from others VCS as svn or bzr
git config --global alias.co=checkout
git config --global alias.st=status
git config --global alias.ci=commit
 
# This has another version with the option '-a' which makes Git
# to stage all the modified and deleted files
git config --global alias.ci=commit -a 
 
# From GNOME. It's useful if always try to do rebase
git config --global alias.up=pull --rebase
 
# Similar to bzr get [branch]
git config --global alias.get=clone
 
# Last change
git config --global alias.last=log -1 HEAD
 
# Undo a commit. Remove the commit from the history but
# without touch the working files
 
git config --global alias.uncommit "reset HEAD^"
 
# Undo a commit and the changes on the working files
# Kind of start over last changes
git config --global alias.undo "reset --hard HEAD^"
Lenguaje: 
bash
Tags:

Comentarios

jojeda:

En verdad no está muy recomendado por ese tipo de cosas, pero yo creo que siempre he tenido que usarlo y por no escribir...
Si veo que tengo que usarlo sin «-a» alguna vez, lo quito, para evitar problemas, pero quizás estaría bien poner que no lo recomiendan mucho.

Gracias por el comentario ;-)

Juanje