gitconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. [user]
  2. name = Fabian Peter Hammerle
  3. email = fabian@hammerle.me
  4. signingkey = 8D2902FE7DF47DDEDA2802F9456B9A0399A5DA2F
  5. [core]
  6. excludesfile = ~/.config/git/gitignore
  7. # hooksPath = ~/.config/git/hooks
  8. [interactive]
  9. singleKey = true
  10. [init]
  11. defaultBranch = main
  12. [status]
  13. branch = true
  14. short = true
  15. showUntrackedFiles = normal
  16. [grep]
  17. lineNumber = true
  18. [diff]
  19. tool = vimdiff
  20. [diff "db_dump"]
  21. textconv = db_dump
  22. [diff "gpg-verify"]
  23. textconv = gpg --verify --output=- 2>&1 --
  24. [diff "hexdump"]
  25. textconv = od -t x1z --
  26. [diff "pgpdump"]
  27. textconv = pgpdump
  28. [diff "xzcat"]
  29. textconv = xzcat
  30. [diff "zcat"]
  31. textconv = zcat
  32. [filter "lfs"]
  33. clean = git-lfs clean -- %f
  34. smudge = git-lfs smudge -- %f
  35. process = git-lfs filter-process
  36. required = true
  37. [commit]
  38. gpgsign = true
  39. verbose = true
  40. [rebase]
  41. instructionFormat = %G? %s (%an <%ae>, %ai)
  42. autostash = true
  43. [push]
  44. default = current
  45. [url "git@github.com:"]
  46. pushInsteadOf = https://github.com/
  47. [tag]
  48. forceSignAnnotated = true
  49. [log]
  50. date = iso8601-strict
  51. [gcrypt]
  52. participants = 8D2902FE7DF47DDEDA2802F9456B9A0399A5DA2F
  53. publish-participants = false
  54. [annex]
  55. securehashesonly = true
  56. autocommit = false
  57. synccontent = true
  58. # copy instead of hard-linking when unlocking
  59. thin = false
  60. # assistant: do not auto delete unused files
  61. expireunused = false
  62. # fixes sync of repos inside encfs mounts
  63. ssh-options = -S~/.ssh/%r@%n:%p
  64. [alias]
  65. a = add
  66. c = commit
  67. # git curl-github-api /commits/master/statuses | jq '.[].state'
  68. curl-github-api = "!f() { path="$1"; shift; git github-repo-names | xargs -I{} --verbose curl --header 'Accept: application/vnd.github.v3+json' 'https://api.github.com/repos/{}'\"$path\" "$@"; }; f"
  69. # git curl-github-ref-status dev | jq '{state, statuses, commit_url}'
  70. curl-github-ref-status = "!f() { ref="$1"; shift; git curl-github-api "/commits/$ref/status" "$@"; }; f"
  71. d = diff
  72. f = fetch --prune
  73. github-repo-names = !git github-urls | grep --only-matching --perl-regexp 'github.com/\\K.+(?=\\.git)'
  74. github-urls = !git remote-urls | grep ^https://github.com/
  75. p = push --verbose
  76. remote-urls = !git remote | xargs -L1 git remote get-url
  77. s = status
  78. t = for-each-ref --sort taggerdate --format '%(taggerdate:iso) %(objectname) %(tag)' refs/tags
  79. tree = log --graph --format=format:'%C(red)%G?%C(reset) %C(yellow)%h%C(reset)%C(blue)%d%C(reset) %C(dim green)%ar%C(reset) %C(white)%s%C(reset) %C(dim cyan)(%an, %ai)%C(reset)' --all
  80. x = annex