.gitconfig 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # INCLUDES
  2. # --------
  3. # Local/Private config goes in the include
  4. [include]
  5. path = ~/.gitconfig.local
  6. # URL ALIASES
  7. # -----------
  8. # Alias for my mian account
  9. [url "git@github.com:0x61nas/"]
  10. insteadOf = me:
  11. [url "git@github.com:"]
  12. insteadOf = gh:
  13. [user]
  14. name = Anas Elgarhy
  15. email = anas.elgarhy.dev@gmail.com
  16. signingkey = 0E4F7AB7210FA2856F1AAD7E38442349DD00D8C6
  17. [core]
  18. editor = helix
  19. pager = delta
  20. autocrlf = input
  21. safecrlf = true
  22. [ui "color"]
  23. ui = always
  24. [color]
  25. ui = true
  26. [init]
  27. defaultBranch = aurora
  28. [help]
  29. autocorrect = 1
  30. [github]
  31. user = 0x61nas
  32. [interactive]
  33. diffFilter = delta --color-only
  34. [delta]
  35. navigate = true # use n and N to move between diff sections
  36. light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
  37. [merge]
  38. conflictstyle = diff3
  39. [diff]
  40. colorMoved = default
  41. [credential]
  42. helper = store
  43. [filter "lfs"]
  44. process = git-lfs filter-process
  45. required = true
  46. clean = git-lfs clean -- %f
  47. smudge = git-lfs smudge -- %f
  48. [rebase]
  49. autoStash = true
  50. [alias]
  51. # allows you to switch branches quickly. For example, `git co master` instead of `git checkout master`
  52. co = checkout
  53. # simplifying the commit process. For example, `git ci -m "Commit message"` instead of `git commit -m "Commit message"`
  54. ci = commit
  55. # helping you create branches faster. For example, `git br feature` instead of `git branch feature`.
  56. br = branch
  57. st = status
  58. df = diff
  59. lg = log --pretty=\"%C(magenta)%h%Creset %C(yellow)%d%Creset%s %C(bold cyan)(%ar)%Creset\"
  60. lgg = lg --abbrev-commit --all --graph
  61. unstage = reset HEAD
  62. last = log -1 HEAD
  63. undo = reset HEAD~
  64. pushf = push --force
  65. squash = !git rebase -i HEAD~$1
  66. amend = commit --amend -S
  67. aliases = config --get-regexp alias
  68. brl = !git for-each-ref --format='%(refname:short) %(objectname:short)' refs/heads/
  69. uncommit = reset HEAD^
  70. hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
  71. ff = merge --ff-only
  72. shelve = !git stash && git checkout
  73. unshelve = stash apply && git stash drop
  74. sync = !git fetch && git rebase origin/$(git symbolic-ref --short HEAD)
  75. upstream = branch --set-upstream-to
  76. ignore = !echo "$1" >> .gitignore
  77. rebase = rebase -S
  78. addp = add --patch