Skip to content

Instantly share code, notes, and snippets.

@d135-1r43
Last active July 26, 2020 09:46
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 d135-1r43/6fa9f0e09260fbcffb5699e551529d92 to your computer and use it in GitHub Desktop.
Save d135-1r43/6fa9f0e09260fbcffb5699e551529d92 to your computer and use it in GitHub Desktop.
.gitconfig
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate
wip = !git add -A && git commit -m WIP
unwip = reset --mixed HEAD~1
ap = !git add -A && git commit --ammend --no-edit
s = status -s
pl = pull --ff-only
pll = !git pl && git lg @{1}..
aliases = config --get-regex alias
logpull = log --reverse --no-merges --stat @{1}..
diffpull = diff @{1}..
fix = !git diff --name-only | uniq | xargs vim
sm = submodule update --recursive --remote
delrb = push origin --delete
fix= !git diff --name-only | uniq | xargs vim
[core]
pager = delta --plus-color="#012800" --minus-color="#340001" --theme='Monokai Extended'
excludesfile = /Users/mhe/.gitignore_global
[interactive]
diffFilter = delta --color-only
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment