Skip to content

Instantly share code, notes, and snippets.

@phearnot
Created December 17, 2018 16:05
Show Gist options
  • Save phearnot/6bc3045f09eddf0c3976901cb15310eb to your computer and use it in GitHub Desktop.
Save phearnot/6bc3045f09eddf0c3976901cb15310eb to your computer and use it in GitHub Desktop.
[pretty]
ol = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
[alias]
pp = pull -p
st = status --short --branch --untracked-files
ci = commit -S
br = branch
co = checkout
df = diff
lg = log --graph --pretty=ol --date=relative
who = shortlog -s --
h = help
fix = commit -S --amend --no-edit
med = commit -S --amend --only
whatis = show -s --pretty=ol --date=relative
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
ff = merge -S --ff-only @{upstream}
m = merge -S --no-ff
rh = reset --hard
index = diff --staged
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[push]
default = upstream
[rerere]
enabled = 1
[core]
excludesfile = ~/.gitignore
autocrlf = input
[pull]
ff = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment