Skip to content

Instantly share code, notes, and snippets.

@oldlastman
Last active April 19, 2021 09:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oldlastman/656b4f99f63139aa81ae to your computer and use it in GitHub Desktop.
Save oldlastman/656b4f99f63139aa81ae to your computer and use it in GitHub Desktop.
Algunos alias útiles en el día a día con git. Tan solo es necesario localizar el archivo .gitconfig y añadir la sección alias o los alias deseados.
[alias]
co = checkout
pd = push origin develop
st = -p status
cm = commit
w = whatchanged
last = cat-file commit HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgfile = ! git log --pretty=format: --name-only --since='2 days ago' | sort | uniq
ls = show --pretty="format:" --name-only
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
clear = ! git rm $(git ls-files --deleted)
tree = log --all --graph --decorate --oneline --simplify-by-decoration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment