.gitconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. [core]
  9. excludesfile = ~/.gitignore_global
  10. [difftool "sourcetree"]
  11. cmd = opendiff \"$LOCAL\" \"$REMOTE\"
  12. path =
  13. [mergetool "sourcetree"]
  14. cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
  15. trustExitCode = true
  16. [alias]
  17. undo = reset --soft HEAD^
  18. stash-all = stash save --include-untracked
  19. tree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
  20. oline = log --oneline --decorate --no-merges
  21. st = status
  22. ci = commit
  23. br = branch
  24. co = checkout
  25. df = diff
  26. 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'
  27. lg = log -p
  28. 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
  29. 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
  30. 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))'
  31. [merge]
  32. conflictstyle = diff3
  33. [commit]
  34. gpgsign = true
  35. [pager]
  36. diff = diff-so-fancy | less --tabs=1,5 -RFX
  37. show = diff-so-fancy | less --tabs=1,5 -RFX
  38. [gpg]
  39. program = /usr/local/bin/gpg
  40. [status]
  41. showUntrackedFiles = all
  42. [transfer]
  43. fsckobjects = true
  44. [filter "lfs"]
  45. clean = git-lfs clean -- %f
  46. smudge = git-lfs smudge -- %f
  47. process = git-lfs filter-process
  48. required = true
  49. [branch]
  50. autosetuprebase = always
  51. [magithub]
  52. online = false
  53. [magithub "status"]
  54. includeStatusHeader = false
  55. includePullRequestsSection = false
  56. includeIssuesSection = false
  57. [github]
  58. user = powellc
  59. [sendmail]
  60. smtpserver = box.onec.me
  61. smtpuser = colin@onec.me
  62. smtpencryption = tls
  63. smtpserverport = 587