my configs
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.
 
 
 
 
 
 

73 lines
2.5 KiB

  1. # This is Git's per-user configuration file.
  2. [user]
  3. name = butlerx
  4. email = butlerx@notthe.cloud
  5. signingkey = C61F9E960956795F3DB41361B37CA765BAA89170
  6. [includeIf "gitdir:~/projects/ihs/"]
  7. path = ~/projects/ihs/.gitconfig
  8. [push]
  9. default = simple
  10. [github]
  11. user = butlerx
  12. [alias]
  13. yolo = !git commit -m \"$(curl -s whatthecommit.com/index.txt)\"
  14. lol = log --oneline --graph --decorate --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
  15. today = log --since=00:00:00 --all --no-merges --oneline --author=butlerx@notthe.cloud
  16. recap = log --all --oneline --no-merges --author=butlerx@notthe.cloud
  17. overview = log --all --oneline --no-merges
  18. recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"
  19. grpah = log --graph --all --decorate --stat --date=iso
  20. changelog = log --pretty=tformat:'* %ad %an <%ae> %d\n - %s' --date=format:'%a %b %d %Y'
  21. amend = commit --amend --no-edit
  22. undo = reset HEAD~1 --mixed
  23. a = add
  24. ap = add -p
  25. c = commit --verbose
  26. ca = commit -a --verbose
  27. cm = commit -m
  28. cam = commit -a -m
  29. m = commit --amend --verbose
  30. d = diff
  31. ds = diff --stat
  32. dc = diff --cached
  33. s = status -s
  34. co = checkout
  35. cob = checkout -b
  36. # list branches sorted by last modified
  37. b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
  38. # list aliases
  39. la = "!git config -l | grep alias | cut -c 7-"
  40. up = !git fetch origin && git rebase origin/master
  41. raf = remote add fork
  42. rao = remote add origin
  43. ac = !git add . && git commit -am
  44. pushitgood = push -u origin --all
  45. fuckpush = push -u fork --all
  46. forkpush = push -u fork
  47. forcepush = push --force
  48. cp = cherry-pick
  49. st = status -s
  50. cl = clone
  51. ec = config --global -e
  52. # for github remotes
  53. pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
  54. pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
  55. # for bitbucket/stash remotes
  56. spr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull-requests/$1/from:pr/$1 && git checkout pr/$1; }; f"
  57. [core]
  58. autocrlf = input
  59. [fetch]
  60. prune = true
  61. [filter "lfs"]
  62. clean = git-lfs clean -- %f
  63. smudge = git-lfs smudge -- %f
  64. required = true
  65. [commit]
  66. gpgsign = true
  67. [gpg]
  68. program = gpg2