Skip to content

Instantly share code, notes, and snippets.

@mathiasose
Last active September 15, 2020 09:07
Show Gist options
  • Save mathiasose/69dbe8e48b6868923cd7a2cc7e9d0a86 to your computer and use it in GitHub Desktop.
Save mathiasose/69dbe8e48b6868923cd7a2cc7e9d0a86 to your computer and use it in GitHub Desktop.
[user]
email = mathias.ose@gmail.com
name = Mathias Ose
[push]
default = simple
[color]
ui = true
[core]
autocrlf = input
pager = diff-so-fancy | less --tabs=4 -RFX
excludesfile = /home/ose/.gitignore_global
[alias]
unadd = reset HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
yolo = !git add -A && git commit -m \"$(curl -s whatthecommit.com/index.txt)\"
prune-all = !git remote | xargs -n 1 git remote prune
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
rekt = clean -fd
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[rerere]
enabled = true
[pull]
ff = only
[help]
autocorrect = 1
[fetch]
prune = true
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[merge "npm-merge-driver"]
name = automatically merge npm lockfiles
driver = npx npm-merge-driver merge %A %O %B %P
[difftool "nbdime"]
cmd = git-nbdifftool diff \"$LOCAL\" \"$REMOTE\" \"$BASE\"
[difftool]
prompt = false
[mergetool "nbdime"]
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[mergetool]
prompt = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment