Skip to content

Instantly share code, notes, and snippets.

@rubencaro rubencaro/.gitconfig
Last active Dec 3, 2017

Embed
What would you like to do?
[user]
name = Rubén Caro
email = ruben.caro.estevez@gmail.com
[alias]
co = checkout
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lolas = log --graph --decorate --abbrev-commit --all --date=short --format=format:'%C(yellow)%h %Cgreen%an %Cblue%ad %Cred%d %Creset%s'
a = !bash -c 'git add --all . && git diff HEAD' -
c = commit -am
p = pull --rebase
st = status
br = branch
df = diff
common-ancestor = !bash -c 'diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1' -
[color]
diff = auto
status = auto
branch = auto
ui = auto
[push]
default = matching
[core]
editor = vim
pager = less -R
[mergetool]
keepBackup = false
[url "git@github.com:"]
insteadOf = https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.