#!/usr/bin/env ruby f = File.open('/Users/matt/gitlog.txt', 'a') f.puts ARGV.join(' ') f.close() exec '/usr/local/bin/git ' + ARGV.join(' ')