Skip to content

Instantly share code, notes, and snippets.

@matheuseduardo
Last active May 3, 2021 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matheuseduardo/20e1ca8c8958f305c048b9e7bbe427d7 to your computer and use it in GitHub Desktop.
Save matheuseduardo/20e1ca8c8958f305c048b9e7bbe427d7 to your computer and use it in GitHub Desktop.
alias para o git
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
alias.lg2 log --pretty='%h - %s (%an)'
alias.alias config --get-regexp ^alias\.
alias.unadd reset HEAD --
alias.unstage reset HEAD --
[alias]
alias = config --get-regexp ^alias\\.
dump = cat-file -p
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --abbrev-commit
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg2 = log --pretty='%s (%an) - %h'
lg3 = log --oneline --pretty='%s (%an) - %cd (%h)' --author=Matheus --date=format:'%d/%m @ %H:%M' --abbrev-commit --no-merges
limpa-branch = fetch --prune
type = cat-file -t
unadd = reset HEAD --
unstage = reset HEAD --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment