Skip to content

Instantly share code, notes, and snippets.

@wrboyce
Created May 20, 2011 14:02
Show Gist options
  • Select an option

  • Save wrboyce/982940 to your computer and use it in GitHub Desktop.

Select an option

Save wrboyce/982940 to your computer and use it in GitHub Desktop.
[user]
name = Will Boyce
email =
signingkey =
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "dev"]
remote = origin
merge = refs/heads/dev
[core]
editor = mvim -f -c 'au VimLeave * !open -a Terminal'
excludesfile = /Users/wrboyce/.gitignore
[alias]
# create aliases using `git alias`!
alias = !sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -
# and list them using `git aliases`
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
# basic workflow aliases
cl = clone
ci = commit
amend = commit --amend
st = status
br = branch
co = checkout
suba = submodule add
undo = reset --soft HEAD^
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lc = log ORIG_HEAD.. --date=relative --stat --no-merges
changes = diff --name-status -r
diffstat = diff --stat -r
prune-all = !git remote | xargs -n 1 git remote prune
## Push All and Tags
pat = !git push --all && git push --tags
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
pager = true
[github]
user = wrboyce
token = <censored>
[merge]
tool = opendiff
[branch]
autosetupmerge = true
[gitflow "branch"]
master = master
develop = dev
[gitflow "prefix"]
feature = feature/
release = release/
hotfix = hotfix/
support = support/
versiontag = v
[pivotal]
full-name = Will Boyce
api-token = <censored>
integration-branch = dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment