Skip to content

Instantly share code, notes, and snippets.

@Kazark
Last active August 15, 2020 18:33
Show Gist options
  • Save Kazark/18cfc3ce5239c171ca93 to your computer and use it in GitHub Desktop.
Save Kazark/18cfc3ce5239c171ca93 to your computer and use it in GitHub Desktop.
Fragment of my global Git config (not entirely original)
[alias]
ff = merge --ff-only
namediff = diff --name-only
sumdiff = diff --name-status
vimdiff = difftool --find-renames
moddiff = difftool --diff-filter=M
gvimdiff = diff --difftool=gvimdiff --find-renames
vdstaged = difftool --staged --find-renames
laph = 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) - %an'
graph = log --graph --branches --remotes --tags --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) - %an'
ten = log --graph --branches --remotes --tags --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)' -10
datelog = log --date=local --format='%C(red)%ad%C(reset) : %C(green)%s%C(reset) - %C(bold blue)%an%C(reset)'
cpick = cherry-pick
ignorechange = update-index --assume-unchanged
uno = status -uno
chekcout = checkout
checkuot = checkout
cane = commit --amend --no-edit
cone = commit --no-edit
fixup = commit --no-edit --fixup
checkkout = checkout
checkokut = checkout
checkcout = checkout
checkut = checkout
checkoukt = checkout
chceckout = checkout
checkoout = checkout
checkookut = checkout
[diff]
tool = vimdiff
guitool = gvimdiff
[difftool]
prompt = false
[merge]
tool = vimdiff
[mergetool]
prompt = false
[color]
ui = true
[push]
default = simple
[github]
user = Kazark
[fetch]
prune = true
[pager]
status = true
[core]
autocrlf = false
excludesfile = ~/.gitignore
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment