Skip to content

Instantly share code, notes, and snippets.

@roneygomes
Created November 30, 2021 22:49
Show Gist options
  • Save roneygomes/19a07f0eeb60844f89b7540f55b89f6f to your computer and use it in GitHub Desktop.
Save roneygomes/19a07f0eeb60844f89b7540f55b89f6f to your computer and use it in GitHub Desktop.
my git aliases
[alias]
pr = pull --rebase
ls = log --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate --abbrev-commit
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate --numstat
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate --date=short
clean-branches = !git branch | grep -v \" master$\" | xargs git branch -D
checkpoint = commit -am 'checkpoint'
last-message = log -n 1 --pretty=format:'%n%n%b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment