.gitconfig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This is Git's per-user configuration file.
  2. [user]
  3. name = Colin Powell
  4. email = colin@onec.me
  5. signingkey = 7B405BE1
  6. [push]
  7. default = current
  8. [commit]
  9. gpgsign = true
  10. [core]
  11. excludesfile = ~/.gitignore_global
  12. [alias]
  13. undo = reset --soft HEAD^
  14. stash-all = stash save --include-untracked
  15. tree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
  16. oline = log --oneline --decorate --no-merges
  17. st = status
  18. ci = commit
  19. br = branch
  20. co = checkout
  21. df = diff
  22. l = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'
  23. lg = log -p
  24. lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
  25. lg2 = 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) %C(dim white)- %an%C(reset)' --all
  26. hs = for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
  27. [merge]
  28. conflictstyle = diff3
  29. [pager]
  30. diff = diff-so-fancy | less --tabs=1,5 -RFX
  31. show = diff-so-fancy | less --tabs=1,5 -RFX
  32. [gpg]
  33. program = /usr/local/bin/gpg
  34. [status]
  35. showUntrackedFiles = all
  36. [transfer]
  37. fsckobjects = true
  38. [filter "lfs"]
  39. clean = git-lfs clean -- %f
  40. smudge = git-lfs smudge -- %f
  41. process = git-lfs filter-process
  42. required = true
  43. [branch]
  44. autosetuprebase = always
  45. [magithub]
  46. online = false
  47. [magithub "status"]
  48. includeStatusHeader = false
  49. includePullRequestsSection = false
  50. includeIssuesSection = false
  51. [github]
  52. user = powellc
  53. [sendmail]
  54. smtpserver = box.onec.me
  55. smtpuser = colin@onec.me
  56. smtpencryption = tls
  57. smtpserverport = 587