Skip to content

Instantly share code, notes, and snippets.

@tsbertalan
Created October 26, 2018 18:04
Show Gist options
  • Save tsbertalan/c214ac1e817e32de4ab681d15f4963cf to your computer and use it in GitHub Desktop.
Save tsbertalan/c214ac1e817e32de4ab681d15f4963cf to your computer and use it in GitHub Desktop.
Partial global gitconfig
[color]
ui = auto
[alias]
changes = diff --name-status -r
tree = log --oneline --decorate --graph --all
unadd = reset HEAD
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !git lg1
todo = grep -n -e TODO -e FIXME -e XXX -e OPTIMIZE
permission-reset = !git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
[core]
editor = vim
autocrlf = input
attributesfile = /home/tsbertalan/.gitattributes
[credential]
helper = cache --timeout=3600
[giggle]
main-window-maximized = true
main-window-geometry = 700x550+1920+24
file-view-vpane-position = 492
history-view-vpane-position = 930
main-window-view = FileView
[push]
default = current
[gui]
editor = gvim
historybrowser = gitk
[diff]
tool = meld
[merge]
tool = meld
#[filter "nbstripout"]
# smudge = cat
# clean = nbstripout
# required = true
[http]
sslVerify = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment