Skip to content

Instantly share code, notes, and snippets.

@rflpazini
Created April 9, 2019 21:16
Show Gist options
  • Save rflpazini/4f07abad779552b9e322716c6118b8f1 to your computer and use it in GitHub Desktop.
Save rflpazini/4f07abad779552b9e322716c6118b8f1 to your computer and use it in GitHub Desktop.
[user]
name = rflpazini
email = rafael.pazini@mercadolivre.com
[alias]
logpretty = log --graph --decorate --pretty=oneline --abbrev-commit
ci = commit
br = branch
co = checkout
cob = checkout -b
d = difftool
df = diff
lg = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
master = !git stash | git checkout master | git up
st = status
who = shortlog -s -n --
up = !git fetch origin && git pull --rebase origin master
ir = !git pull --rebase origin master
cm = !git checkout master
dlb = !git checkout master && git branch | grep -v "master" | xargs git branch -D
lb = !git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
upush = !git fetch origin && git pull --rebase origin master && git push
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[core]
editor = vim
excludesfile = ~/.gitignore_global
[diff]
tool = vimdiff
[difftool]
prompt = false
[merge]
tool = vimdiff
[push]
default = current
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment