Skip to content

Instantly share code, notes, and snippets.

@rubencaro
Last active December 3, 2017 12:15
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 rubencaro/a4e48b691ed377f14b19 to your computer and use it in GitHub Desktop.
Save rubencaro/a4e48b691ed377f14b19 to your computer and use it in GitHub Desktop.
[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