shosei

gitconfig

Feb 23rd, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1. [alias]
  2.     aa = !git ls-files -d | xargs -r git rm && git ls-files -m -o --exclude-standard | xargs -r git add
  3.     aup = "!sh -c 'git ls-files -m | grep $1 | xargs -r git add' -"
  4.     ag = "!sh -c 'git ls-files -m -o --exclude-standard | grep $1 | xargs -r git add' -"
  5.     agp = "!sh -c 'git ls-files -m -o --exclude-standard | grep $1 | xargs -r git add -p' -"
  6.     cg = "!sh -c 'git ls-files -m | grep $1 | xargs -r git checkout' -"
  7.     dg = "!sh -c 'git ls-files -m | grep $1 | xargs -r git diff' -"
  8.     pg = "!sh -c 'git ls-files -m | grep $1 | xargs -r git diff --cached' -"
  9.     rmg = "!sh -c 'git ls-files -d | grep $1 | xargs -r git rm' -"
  10.     rsg = "!sh -c 'git ls-files -c | grep $1 | xargs -r git reset' -"
  11.     lg = log --graph --pretty=oneline --abbrev-commit --decorate
  12.     si = !git svn show-ignore > .git/info/exclude
  13.     sh = !git-sh
  14. [color]
  15.     diff = auto
  16.     status = auto
  17.     branch = auto
  18.     interactive = auto
  19.     ui = auto
  20. [color "branch"]
  21.     current = green bold
  22.     local = green
  23.     remote = red bold
  24. [color "diff"]
  25.     meta = yellow bold
  26.     frag = magenta bold
  27.     old = red bold
  28.     new = green bold
  29. [color "status"]
  30.     added = green bold
  31.     changed = yellow bold
  32.     untracked = red
  33. [core]
  34.     excludesfile = /home/jj/.gitignore
  35.     pager = less -FXRS -x2
  36. [merge]
  37.     tool = gvim -d
  38. [push]
  39.     default = current
  40. [branch]
  41.     autosetuprebase = always
  42. [color "sh"]
  43.     branch = yellow
  44. [diff]
  45.     renames = copies
  46.     mnemonicprefix = true
  47. [svn]
  48.     rmdir = true
Advertisement
Add Comment
Please, Sign In to add comment