Skip to content

Instantly share code, notes, and snippets.

@roneygomes
Created November 30, 2021 22:49
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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