Skip to content

Instantly share code, notes, and snippets.

@bar

bar/.gitconfig

Last active Jun 30, 2020
Embed
What would you like to do?
git alias
[push]
default = simple
[fetch]
prune = true
[user]
name = Ber Clausen
[core]
ignorecase = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
st = status
ci = commit -v
br = branch
co = checkout
df = diff
dc = diff --cached
ds = diff --staged
lg = log -p
lgt = log --graph --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgtt = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
l = log --decorate --stat --graph --pretty=format:'%C(yellow)%h%Creset (%aD - %ar - %Cred%an%Creset), %s%n'
ll = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lolr = log --graph --decorate --pretty=oneline --abbrev-commit --date=relative
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lolar = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=relative
ls = ls-files
unstage = reset HEAD
ign = ls-files -o -i --exclude-standard
# [color]
# branch = auto
# diff = auto
# status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
# old = red bold
# new = green bold
[color "status"]
added = yellow
changed = green
# untracked = cyan
untracked = red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment