config 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [user]
  2. name = Thomas Dy
  3. email = thatsmydoing@gmail.com
  4. [merge]
  5. conflictstyle = diff3
  6. [core]
  7. autocrlf = input
  8. [delta]
  9. features = side-by-side line-numbers decorations
  10. whitespace-error-style = 22 reverse
  11. [delta "decorations"]
  12. commit-decoration-style = bold yellow box ul
  13. file-style = bold yellow ul
  14. file-decoration-style = none
  15. [color]
  16. ui = true
  17. [diff]
  18. algorithm = patience
  19. [difftool]
  20. prompt = false
  21. [difftool "difft"]
  22. cmd = difft "$LOCAL" "$REMOTE"
  23. [push]
  24. default = current
  25. [branch]
  26. autoSetupMerge = inherit
  27. [remote]
  28. pushDefault = origin
  29. [alias]
  30. root = !pwd
  31. assume = update-index --assume-unchanged
  32. unassume = update-index --no-assume-unchanged
  33. assumed = "!git ls-files -v | grep ^h | cut -c 3-"
  34. lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
  35. po = push origin
  36. pof = push origin --force-with-lease
  37. p = push
  38. pf = push --force-with-lease
  39. ff = merge --ff-only
  40. roh = rebase origin/HEAD
  41. rioh = rebase -i origin/HEAD
  42. ru = rebase @{upstream}
  43. riu = rebase -i @{upstream}
  44. ca = commit --amend
  45. smash = "!git add -u && git ca --no-edit && git pof"
  46. reset-head = remote set-head origin -a
  47. ff-head = "!git push . origin/HEAD:$(git head)"
  48. head = for-each-ref --format="%(symref:lstrip=-1)" refs/remotes/origin/HEAD
  49. sh = "!git switch $(git head)"