Guest User

Untitled

a guest
Sep 18th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. [user]
  2. name = brentk
  3. [push]
  4. default = simple
  5. [color]
  6. ui = auto
  7. [color "branch"]
  8. current = yellow reverse
  9. local = yellow
  10. remote = green
  11. [color "diff"]
  12. meta = yellow bold
  13. frag = magenta bold
  14. old = red bold
  15. new = blue bold
  16. [color "status"]
  17. added = yellow
  18. changed = green
  19. untracked = cyan
  20. [alias]
  21. # Common typos
  22. idff = diff
  23. dff = diff
  24. tdiff = diff
  25.  
  26. # Quick shortcuts
  27. st = status
  28. co = checkout
  29. br = branch
  30.  
  31. # Diff current branch with master
  32. mdiff = diff master
  33.  
  34. # List files different from master with +++/--- summary of changes
  35. names = "!f(){ git mdiff --stat=$(tput cols) ;};f"
  36. #names = diff master --stat
  37. #names = diff master --name-only
  38.  
  39. # List commit history with file changed in each commit ( with +++/--- summary of changes)
  40. lognames = "!f(){ git log --stat=$(tput cols) ;};f"
  41. #lognames = log --name-only
  42.  
  43. # Show my commits
  44. logme = log --author=brent
  45.  
  46. # Don't remember what this was, maybe list tags?
  47. tagcommit = rev-list -n 1
  48.  
  49. # -c adds diffs for merge commits
  50. logdiff = log -p -c
  51.  
  52. # Ignore and stop ignoring changes to a file
  53. ignore = update-index --assume-unchanged
  54. unignore = update-index --no-assume-unchanged
  55.  
  56. # Bring current branch up to speed with master
  57. update = !git pull && git merge master
  58.  
  59. # creates a branch, checks it out, and pushes it to the git server in one command
  60. crbr = "!f(){ git branch $1; git checkout $1; git push -u origin $1; };f"
  61.  
  62. # searches for string in branch names
  63. brsearch = "!f(){ git br -a | grep -i $1;};f"
Advertisement
Add Comment
Please, Sign In to add comment