Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. [filter "media"]
  2. clean = git-media-clean %f
  3. smudge = git-media-smudge %f
  4. [user]
  5. email =
  6. name = I
  7. [credential]
  8. helper = store
  9. [alias]
  10. ec = config --global -e
  11. up = "!git remote update -p; git merge --ff-only @{u}"
  12. co = checkout
  13. cob = checkout -b
  14. pud = pull upstream develop
  15. pod = push origin develop
  16. cm = !git add -A && git commit -m
  17. save = !git add -A && git commit -m 'SAVEPOINT'
  18. wip = !git add -u && git commit -m "WIP"
  19. undo = reset HEAD~1 --mixed
  20. amend = commit -a --amend
  21. lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
  22. lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
  23. lg = !"git lg1"
  24. g = log --graph --pretty=custom # Show custom graph
  25. l = log --pretty=custom # Show custom log
  26. worddiff = !git diff --color | diff-highlight | less -r
  27. pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
  28. pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
  29.  
  30. [color]
  31. ui = true
  32.  
  33. [core]
  34. excludesfile = ~/.gitignore_global
  35. editor = atom --wait
  36. pager = diff-highlight | less -r
  37. [color "branch"]
  38. current = yellow reverse
  39. local = yellow
  40. remote = green
  41. [color "diff"]
  42. meta = yellow bold
  43. frag = magenta bold
  44. old = red bold
  45. new = green bold
  46. [color "diff-highlight"]
  47. oldNormal = "red bold"
  48. oldHighlight = "red bold 52"
  49. newNormal = "green bold"
  50. newHighlight = "green bold 22"
  51. [color "status"]
  52. added = yellow
  53. changed = green
  54. untracked = cyan
  55. [filter "lfs"]
  56. clean = git lfs clean %f
  57. smudge = git lfs smudge %f
  58. required = true
  59.  
  60. [pretty]
  61.  
  62. custom = "%C(magenta)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
  63. # │ │ │ │ └─ author name
  64. # │ │ │ └─ message
  65. # │ │ └─ date (relative)
  66. # │ └─ decorations (branch, heads or tags)
  67. # └─ hash (abbreviated)
  68. [difftool "sourcetree"]
  69. cmd = opendiff \"$LOCAL\" \"$REMOTE\"
  70. path =
  71. [mergetool "sourcetree"]
  72. cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
  73. trustExitCode = true
  74. [commit]
  75. template = ~/.stCommitMsg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement