config 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [alias]
  2. addp = "add --patch"
  3. aliases = "config --get-regexp alias"
  4. amend = "commit --amend -S"
  5. br = "branch"
  6. brl = "!git for-each-ref --format='%(refname:short) %(objectname:short)' refs/heads/"
  7. ci = "commit"
  8. co = "checkout"
  9. df = "diff"
  10. ff = "merge --ff-only"
  11. hist = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
  12. ignore = "!echo '$1' >> .gitignore"
  13. last = "log -1 HEAD"
  14. lg = "log --pretty=\"%C(magenta)%h%Creset %C(yellow)%d%Creset%s %C(bold cyan)(%ar)%Creset\""
  15. lgg = "lg --abbrev-commit --all --graph"
  16. logline = "log --graph --oneline --decorate"
  17. pushf = "push --force"
  18. shelve = "!git stash && git checkout"
  19. squash = "!git rebase -i HEAD~$1"
  20. st = "status"
  21. sync = "!git fetch && git rebase origin/$(git symbolic-ref --short HEAD)"
  22. uncommit = "reset HEAD^"
  23. undo = "reset HEAD~"
  24. unshelve = "stash apply && git stash drop"
  25. unstage = "reset HEAD"
  26. upstream = "branch --set-upstream-to"
  27. [commit]
  28. gpgSign = true
  29. [core]
  30. eol = "lf"
  31. fsmonitor = true
  32. pager = "delta"
  33. [diff]
  34. tool = "nvimdiff"
  35. [difftool]
  36. prompt = false
  37. [difftool "nvimdiff"]
  38. cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
  39. [help]
  40. autocorrect = 1
  41. [delta]
  42. navigate = true # use n and N to move between diff sections
  43. light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
  44. [github]
  45. user = "0x61nas"
  46. [gpg]
  47. program = "/bin/gpg"
  48. [init]
  49. defaultBranch = "aurora"
  50. [interactive]
  51. diffFilter = "delta --color-only"
  52. [merge]
  53. tool = "nvimdiff"
  54. [mergetool]
  55. prompt = true
  56. [mergetool "nvimdiff"]
  57. cmd = "nvim -d \"$LOCAL\" \"$REMOTE\" \"$MERGED\" -c 'wincmd w' -c 'wincmd J'"
  58. [push]
  59. autoSetupRemote = true
  60. [safe]
  61. directory = "*"
  62. [sendemail]
  63. from = "anas.elgarhy.dev@gmail.com"
  64. smtpencryption = "tls"
  65. smtpserver = "smtp.gmail.com"
  66. smtpserverport = 587
  67. smtpuser = "anas.elgarhy.dev@gmail.com"
  68. [tag]
  69. gpgSign = true
  70. [url "git@github.com:0x61nas/"]
  71. insteadOf = "me:"
  72. [user]
  73. email = "anas.elgarhy.dev@gmail.com"
  74. name = "Anas Elgarhy"
  75. signingKey = "0x83E03DC6F3834086"