You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.gitconfig 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [user]
  2. # TODO: Move outside this file
  3. name = ojizero
  4. email = z.acnts.816@pm.me
  5. [alias]
  6. s = status --short --branch
  7. ss = status
  8. a = add
  9. ac = add .
  10. cl = clone
  11. co = checkout
  12. cob = checkout -b
  13. c = commit
  14. cm = commit --message
  15. cam = commit --all --message
  16. caa = commit --all --amend --no-edit
  17. amn = commit --amend --no-edit
  18. amm = commit --amend --message
  19. pl = pull
  20. ps = push
  21. psf = push --force
  22. pso = push --set-upstream origin HEAD
  23. psu = "!gpsu() { upstream=${1-upstream}; \\git push --set-upstream $upstream HEAD; }; gpsu"
  24. st = stash
  25. sp = stash push
  26. sa = stash pop
  27. sl = stash list
  28. b = branch
  29. d = diff
  30. dn = !git --no-pager diff --name-only
  31. ds = diff --cached
  32. l = !"l() { git --no-pager log -${1-1}; }; l"
  33. ll = log
  34. tree = log --oneline --graph --decorate --all
  35. graph = log --oneline --graph --decorate --all
  36. ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@; }; gi >> .gitignore"
  37. ri = rebase -i
  38. re = rebase
  39. remaster = rebase master
  40. ini = init
  41. newgh = "!ghnew() { \\git init; \\hub create $@; }; ghnew"
  42. [push]
  43. followTags = true
  44. [rebase]
  45. autoStash = true
  46. [color]
  47. ui = true
  48. [core]
  49. pager = diff-so-fancy | less -RFX
  50. [diff-so-fancy]
  51. markEmptyLines = false
  52. stripLeadingSymbols = false