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