Skip to content

Instantly share code, notes, and snippets.

@bar
Last active June 30, 2020 01:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bar/5be117a238186324e630f2bfeb6a95d8 to your computer and use it in GitHub Desktop.
Save bar/5be117a238186324e630f2bfeb6a95d8 to your computer and use it in GitHub Desktop.
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