Last active
April 19, 2021 09:53
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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