Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/dotfiles
Path: blob/master/files/gitconfig
245 views
[user]
  name = Aos Dabbagh
  email = [email protected]

[alias]
  s = status
  cm = commit -m
  co = checkout
  d = diff
  di = diff --no-index
  ds = diff --staged
  l = log --stat --abbrev-commit
  ll = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
  lg = log --graph --all --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an (%aE)%C(reset)'
  root = rev-parse --show-toplevel
  sha = !sh -c 'git rev-parse --short ${1:-HEAD}' --
  # For saving normal diffs to email or later: 'git patch > changes.patch'
  patch = !git --no-pager diff --no-color
  alias = config --get-regexp alias
  edit = !$EDITOR $(git ls-files -o -m --exclude-standard)

[core]
  editor = nvim
  pager = diff-highlight | less --tabs=4 -RFX
[color]
  ui = true
[color "diff"]
  meta = 227
  frag = magenta bold
  commit = 227 bold
  old = red bold
  new = green bold
  whitespace = red reverse
[diff]
  tool = vimdiff
[mergetool "nvim"]
  cmd = nvim -f -c \"Gdiff\" \"$MERGED\"
[gpg]
  program = /usr/bin/gpg