SHARE
TWEET

Untitled

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