module Rails::Generators::Actions
def git(command={})
git :add => "onefile.rb", :rm => "badfile.cxx"
git :add => "this.file that.rb"
git :init
==== Examples
Run a command in git.
def git(command={}) if command.is_a?(Symbol) run "git #{command}" else command.each do |command, options| run "git #{command} #{options}" end end end