Created
October 28, 2008 20:42
-
-
Save macournoyer/20511 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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