Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. # [user]
  2. # name = Nome Cognome
  3. # email = nome.cognome@email.com
  4.  
  5. [alias]
  6. # shortcuts
  7. ci = commit
  8. co = checkout
  9. di = diff
  10. dc = diff --cached
  11. addp = add -p .
  12. st = status
  13. ss = status --short
  14.  
  15. # info
  16. last = log -1 HEAD
  17. log-file = log --follow --patch --
  18.  
  19.  
  20. # undo
  21. unadd = reset HEAD --
  22. unstage = reset HEAD --
  23. unch = checkout --
  24. unci = reset --soft
  25. rmun = clean -f
  26.  
  27. # branches
  28. branches = branch -av
  29. br = checkout
  30. newbr = checkout -b
  31. rmbr = branch -d
  32. menoff = merge --no-ff
  33.  
  34. # assume-unchanged
  35. assume = update-index --assume-unchanged
  36. unassume = update-index --no-assume-unchanged
  37. assumed = "!git ls-files -v | grep ^h | cut -c 3-"
  38. unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
  39. assumeall = "!git st -s | awk {'print $2'} | xargs git assume"
  40.  
  41. # log
  42. l = log --oneline --decorate --graph --branches --remotes -20
  43. ll = log --oneline --decorate --stat --graph
  44. ls = log --oneline --decorate --graph --branches --remotes --simplify-by-decoration
  45. t = log --oneline --decorate --graph --branches --remotes -20 --pretty=format:'%C(yellow)%h%C(red bold)%d %Creset%s %C(green)(%ar) %C(cyan)<%cn>' --date=relative
  46.  
  47. # list aliases
  48. al = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
  49.  
  50. # tag
  51. tags = tag
  52. lasttag = describe --tags --abbrev=0
  53.  
  54. # others
  55. reco = commit --amend
  56. resolved = add
  57. remotes = remote -v
  58.  
  59. [color]
  60. ui = auto
  61.  
  62. [color "branch"]
  63. current = yellow reverse
  64. local = yellow
  65. remote = green
  66.  
  67. [color "diff"]
  68. meta = yellow bold
  69. frag = magenta bold
  70. old = red bold
  71. new = green bold
  72.  
  73. [color "status"]
  74. added = green
  75. changed = yellow
  76. untracked = red
  77.  
  78. [core]
  79. excludesfile = ~/.gitignore_global
  80. editor = vim
  81. pager = less -r
  82.  
  83. [diff]
  84. tool = vimdiff
  85. compactionHeuristic = 1
  86.  
  87. [pull]
  88. rebase = true
  89.  
  90. [push]
  91. default = current
  92.  
  93. [pager]
  94. log = 'diff-highlight | less'
  95. show = 'diff-highlight | less'
  96. diff = 'diff-highlight | less'
  97.  
  98. [interactive]
  99. diffFilter = diff-highlight
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement