Skip to content

Instantly share code, notes, and snippets.

@alobato
Created August 28, 2010 01:07
Show Gist options
  • Select an option

  • Save alobato/554494 to your computer and use it in GitHub Desktop.

Select an option

Save alobato/554494 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
git_dir = '/home/i0n/git'
# git_dir = '/Users/i0n/sites/bin/'
app_name = ARGV
Dir.chdir git_dir
Dir.mkdir "#{app_name}.git"
Dir.chdir "#{git_dir}/#{app_name}.git"
system "git init --bare"
puts "SUCCESS!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment