.gitconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [user]
  2. email = tom@chillidonut.com
  3. name = Tom McKenzie
  4. signingkey = 896D4BE5
  5. [color]
  6. branch = auto
  7. diff = auto
  8. status = auto
  9. [color "branch"]
  10. current = yellow reverse
  11. local = yellow
  12. remote = green
  13. [color "diff"]
  14. meta = yellow bold
  15. frag = magenta bold
  16. old = red
  17. new = cyan
  18. [color "status"]
  19. added = yellow
  20. changed = green
  21. untracked = cyan
  22. [help]
  23. autocorrect = 10
  24. [alias]
  25. p = push
  26. pp = publish
  27. s = switch
  28. sc = switch create
  29. rb = pull --rebase
  30. rbc = rebase --continue
  31. rba = rebase --abort
  32. l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
  33. b = for-each-ref --count=10 --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative) %09%(color:white)%(objectname:short) %(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads --no-merged
  34. edit-conflicted = ! git diff --name-only | uniq | xargs $(echo $EDITOR)
  35. history = log -p --
  36. pushf = push --force-with-lease
  37. pullall = ! git pull && git submodule update --init --recursive --remote
  38. publish = ! git push -u origin `git rev-parse --abbrev-ref HEAD`
  39. diverged = ! git log --graph --date=relative --oneline `git rev-parse --abbrev-ref HEAD` origin/`git rev-parse --abbrev-ref HEAD`
  40. fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
  41. last = rev-list -1 HEAD
  42. [core]
  43. excludesfile = /Users/tom/.gitignore_global
  44. whitespace = tab-in-indent,trailing-space,space-before-tab
  45. ignorecase = false
  46. editor = vim -c 'startinsert'
  47. [push]
  48. default = upstream
  49. [status]
  50. submoduleSummary = true
  51. [merge "npm-merge-driver"]
  52. name = automatically merge npm lockfiles
  53. driver = npx npm-merge-driver merge %A %O %B %P
  54. # [pull]
  55. # rebase = preserve
  56. [pull]
  57. ff = only
  58. [advice]
  59. detachedHead = false
  60. [filter "lfs"]
  61. clean = git-lfs clean -- %f
  62. smudge = git-lfs smudge -- %f
  63. process = git-lfs filter-process
  64. required = true
  65. [include]
  66. path = ~/dotfiles/.gitconfig_difftastic
  67. condition = command -v difft >/dev/null 2>&1