Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 63 lines (56 sloc) 1.888 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
[color]
  diff = auto
status = auto
branch = auto

[alias]
  br = branch -v
co = checkout
ci = commit
di = diff
st = status
# Show the commits and content in this branch
showbr = log --pretty=oneline trunk..
showallbr = log -U trunk ..
# Change the HEAD commit message to the template and edit
amd = !git commit --amend -eF `git config commit.template`
# Safe remove all branches reachable from HEAD. Good way to GC old branches after dcommit/rebase
gcbr = !git branch --no-track --no-color --merged | sed 's/[ *]*//' | xargs -n1 git branch -d &> /dev/null || exit 0
# Spellcheck your commit message
aspell = !git log --pretty=format:%s%n%n%b -n1 > /tmp/aspell.txt && aspell -c /tmp/aspell.txt && git commit --amend -F /tmp/aspell.txt
# Commit changes to current head as amended commit
plus = commit --amend -a -C HEAD
# Commit changes on *top* of current head as a checkpoint commit
cp = commit -am 'cp'
# Grep with color and line numbers
gr = grep --color -n
# Colorized git blame
bl = !colorize_git_blame_pipe.sh $@
# Search javascript for a variable/function definition
jsdef = !sh -c 'git grep -e "function\\\\W+$1\\\\W" --or -e "function\\\\W*/\\\\*.*\\\\*/\\\\W*$1\\\\W" --or -e "\\\\W$1\\\\W*[=:]" -- *.js' -

[svn]
  followparent = true

# Dear god, please change these if you borrow my gitconfig
[user]
# name = Replace with your name
# email = Replace with your email

# Show a log of '56 minutes ago' rather than 'November 12, 2008 12:34:53'
[log]
  date = relative

[push]
  default = tracking

# Use only for black background terminal
[color "branch"]
  current = yellow reverse
local = yellow
remote = green
[color "diff"]
  plain = white
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red blink
[color "status"]
  added = yellow
changed = green
untracked = cyan
Something went wrong with that request. Please try again.