Skip to content

Instantly share code, notes, and snippets.

View itguy51's full-sized avatar

Rebecca Pruim itguy51

  • San Diego, California
View GitHub Profile
@itguy51
itguy51 / filer.rb
Created December 17, 2011 20:32
Git-Based file management written in Ruby
#!/usr/bin/env ruby
require 'rubygems'
require 'grit'
include Grit
#Assume that the repo exists in some way or another, if not, create it.
if(FileTest.exists?('repo.git'))
repo = Repo.new('repo.git')
else
repo = Repo.init_bare('repo.git')
end