Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. [alias]
  2. datetime = !date +'%Y-%m-%d %H:%M:%S' && :
  3.  
  4. s = status -sb
  5. st = status
  6.  
  7. addi = add --patch
  8. unstage = reset HEAD --
  9. ls = ls-files
  10.  
  11. ds = diff --staged
  12. staged = diff --staged
  13. du = diff
  14. unstaged = diff
  15. dsw = diff --staged -w
  16. duw = diff -w
  17. wds = diff --staged --color-words
  18. wstaged = diff --staged --color-words
  19. wdu = diff --color-words
  20. wunstaged = diff --color-words
  21.  
  22. ci = commit
  23. cm = commit
  24. amend = commit --amend
  25. pick = cherry-pick
  26.  
  27. graph = log --graph --all
  28. hist = log --first-parent
  29. last = log -1 --stat
  30. contributors = shortlog -s -n --no-merges
  31.  
  32. search = branch -a --contains
  33. rso = remote show origin
  34. co = checkout
  35. br = branch
  36. br-current = rev-parse --abbrev-ref HEAD
  37. # Archiving branch (create tag archive/BRANCH and destroy BRANCH).
  38. # Call like `git br-arch BRANCH`.
  39. # This alias makes the following steps:
  40. # * fetch and clear all branches/tags
  41. # * ensure that branch exists
  42. # * create new tag based on origin branch
  43. # * push created tag
  44. # * destroy archivized remote branch
  45. # * prune destroyed branch
  46. br-arch = ! \
  47. git fetch origin --prune --tags && \
  48. git rev-parse --verify origin/$1 && \
  49. git tag archive/$1 origin/$1 -m \"`git datetime`\" && \
  50. git push origin archive/$1 && \
  51. git push origin :$1 && \
  52. git remote prune origin && :
  53. puff = pull --ff
  54.  
  55. poc = !git push origin `git br-current`
  56. puc = !git push upstream `git br-current`
  57. boom = !git poc --force-with-lease && :
  58. kaboom = !git add -A . && git amend --no-edit --allow-empty && git boom && :
  59.  
  60. # prune remote branches/tags from all remotes, fetch branches/tags and override local tags with corresponding versions on remote
  61. update = fetch --all --prune --tags
  62. tags = tag -n
  63. type = cat-file -t
  64. dump = cat-file -p
  65. clear = ! \
  66. git update && \
  67. git gc && :
  68.  
  69.  
  70. [branch "master"]
  71. mergeoptions = --no-ff --no-commit
  72.  
  73.  
  74. [color]
  75. branch = auto
  76. diff = auto
  77. interactive = auto
  78. status = auto
  79. ui = auto
  80.  
  81.  
  82. [core]
  83. autocrlf = false
  84. pager = less -FRSX
  85. quotepath = false
  86. safecrlf = true
  87.  
  88.  
  89. [format]
  90. pretty = format:'%C(green)%h%Creset %C(cyan)%ad%x08%x08%x08%x08%x08%x08%Creset -%C(yellow)%d%Creset %s %C(green)[%Creset%C(cyan)%an%Creset%C(green)]%Creset'
  91. release = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
  92.  
  93. [grep]
  94. linenumber = true
  95.  
  96.  
  97. [log]
  98. date = iso
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement