gitconfig 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. [status]
  11. branch = true
  12. short = true
  13. showUntrackedFiles = normal
  14. [grep]
  15. lineNumber = true
  16. [diff]
  17. tool = vimdiff
  18. [diff "db_dump"]
  19. textconv = db_dump
  20. [diff "gpg-verify"]
  21. textconv = gpg --verify --output=- 2>&1 --
  22. [diff "hexdump"]
  23. textconv = od -t x1z --
  24. [diff "pgpdump"]
  25. textconv = pgpdump
  26. [filter "lfs"]
  27. clean = git-lfs clean -- %f
  28. smudge = git-lfs smudge -- %f
  29. process = git-lfs filter-process
  30. required = true
  31. [commit]
  32. gpgsign = true
  33. verbose = true
  34. [rebase]
  35. instructionFormat = %G? %s (%an <%ae>, %ai)
  36. autostash = true
  37. [push]
  38. default = simple
  39. [url "git@github.com:"]
  40. pushInsteadOf = https://github.com/
  41. [tag]
  42. forceSignAnnotated = true
  43. [log]
  44. date = iso8601-strict
  45. [gcrypt]
  46. participants = 8D2902FE7DF47DDEDA2802F9456B9A0399A5DA2F
  47. publish-participants = false
  48. [annex]
  49. securehashesonly = true
  50. autocommit = false
  51. synccontent = true
  52. # copy instead of hard-linking when unlocking
  53. thin = false
  54. # assistant: do not auto delete unused files
  55. expireunused = false
  56. # fixes sync of repos inside encfs mounts
  57. ssh-options = -S~/.ssh/%r@%n:%p
  58. [alias]
  59. a = add
  60. c = commit
  61. # git curl-github-api /commits/master/statuses | jq '.[].state'
  62. 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"
  63. d = diff
  64. f = fetch --prune
  65. github-repo-names = !git github-urls | grep --only-matching --perl-regexp 'github.com/\\K.+(?=\\.git)'
  66. github-urls = !git remote-urls | grep ^https://github.com/
  67. p = push --verbose
  68. remote-urls = !git remote | xargs -L1 git remote get-url
  69. s = status
  70. t = for-each-ref --sort taggerdate --format '%(taggerdate:iso) %(objectname) %(tag)' refs/tags
  71. 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
  72. x = annex