Skip to content

Instantly share code, notes, and snippets.

@GustavoJobstraibizer
Created November 16, 2017 12:07
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 GustavoJobstraibizer/912398dd461c904831f32647df0b64a5 to your computer and use it in GitHub Desktop.
Save GustavoJobstraibizer/912398dd461c904831f32647df0b64a5 to your computer and use it in GitHub Desktop.
Alias Git
[alias]
status = st
st = status
grafico = log --oneline --decorate --all --graph
co = commit --amend --no-edit
maid = "!git branch --merged | grep -v -P '^\\*|master|develop' | xargs -n1 -r git branch -d"
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
[user]
email = gustavo@sialog.com.br
name = gustavoslg
[merge]
tool = winmerge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment