Skip to content

Instantly share code, notes, and snippets.

@macournoyer
Created October 28, 2008 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macournoyer/20511 to your computer and use it in GitHub Desktop.
Save macournoyer/20511 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
name = macournoyer
email = macournoyer@gmail.com
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status
co = checkout
ci = commit -a -v
b = branch
s = stash
d = diff
p = push
a = add .
tp = !rake test && git push-retry
ptp = !git pull && rake db:migrate default && git push
tcp = !git-tcp
cip = !git-tcp -t
push-retry = !git push || git ptp
[core]
excludesfile = /Users/marc/.gitignore
[merge]
tool = opendiff
summary = true
#!/usr/bin/env ruby -s
# test-commit-push to git
msg = ARGV.first
abort "usage: #{$0} [commit message]" unless msg
msg = "-m #{msg.inspect}"
cmd = [("rake" unless $t), "git add .", "git ci #{msg}", "git push-retry", fix].compact.join(" && ")
puts cmd
exec cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment