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 98 lines (86 sloc) 3.109 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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
[user]
  email=matthew@lyonheart.us
  name = Matthew Lyon
[github]
  user = mattly
[hub]
  protocol=https

[core]
  excludesfile=~/.gitignore
  pager=cat

[color]
  ui = auto
  diff=auto
  status=auto
  branch=auto

[merge "gemfilelock"]
  name = relocks the gemfile.lock
  driver = bundle lock
[merge "compass"]
  name = recompile the sass files
  driver = rake compass

[diff]
  renames = copies

[diff "ruby"]
  funcname="^ *\\(\\(class\\|module\\|def\\) .*\\)"

[format]
  pretty="format:%Cred%ae %Creset- %C(yellow)%h %s %Creset(%ar)"

[help]
  autocorrect=1

[log]
  date=short

[push]
  default=current

[alias]
  # amend to the last commit
  amend = commit --amend -C HEAD
  # add only part of the commit to index
  addp = add --patch
  # search through the log
  axe = !sh -c 'git log -S"$0"'
  # show all branches, even across remotes
  branches = branch -a --color -v
  # remove all local branches included in the current branch
  cleanup = !sh -c 'git branch --merged | grep -E "^[^*]" --exclude "^\\s*master" | xargs -n1 git branch -d'
  # removes remote branches that have been merged into HEAD
  cleanup-remotes = !"f() { git branch -r --merged | cut -d \\ -f 3 | while read branch; do test `git rev-parse $branch` == `git rev-parse HEAD` && echo \"skipping branch $branch\" || (echo \"deleting branch $branch\" && echo $branch | sed 's/\\//\\ :/' | xargs -t git push ); done }; f"
  # shallow clone a repository, because we don't care about history
  clone-shallow = clone --depth 1
  # delete a remote branch
  delete = !sh -c 'git push "$0" :refs/heads/"$1"'
  # merge the branch, keeping its commits in their own branch
  fold = merge --no-ff
  # put this branch at a particular ref
  goto = reset --hard
  # set an ignore pattern
  ignore = !"f () { local ignore_file=$( git rev-parse --show-cdup ).gitignore arg; for arg in $*; do echo $arg >> $ignore_file; done; sort -u -o $ignore_file $ignore_file; }; f"
  # set a tag
  label = tag -a
  # mirror branches (including deletions) and tags
  mirror = push --mirror
  # show commits that haven't been pushed to the remote yet
  pending = !sh -c 'git --no-pager log "$0"/HEAD..HEAD && echo'
  # creates a remote branch
  push-remote = !sh -c 'git push "$0" HEAD'
  # interactive rebase
  ri = rebase --interactive --autosquash
  # diff the index against the previous commit
  staged = diff --cached
  # better status
  stat = status -sb
  # update all submodules
  submodule-pull = submodule foreach "git checkout master && git pull origin master"
  # tags a release with 'release/YYYY-MM-DD-HH-MM-SS'
  tag-release = !sh -c 'git tag release/`date +%Y/%m/%d/%H%M`'
  # track a remote branch
  track = checkout -t
  # retains a commit as staged
  undo = reset --soft HEAD^
  # remove a file from the index
  unstage = reset HEAD --
  # pull changes, show commits since last pull/push
  up = !sh -c 'git pull "$0" HEAD && git log --pretty=format:\"%Cred%ae %Creset- %C(yellow)%s %Creset(%ar)\" HEAD@{1}..'
  # update all remotes, pruning removed tracking branches
  update-remotes = remote update --prune

[credential]
helper = osxkeychain
Something went wrong with that request. Please try again.