Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created April 16, 2009 05:35
Show Gist options
  • Save jhubert/96246 to your computer and use it in GitHub Desktop.
Save jhubert/96246 to your computer and use it in GitHub Desktop.
r = Grit::Repo.new('test.git')
i = r.index
i.add('my file.txt', 'hello world! 1')
i.commit('my first commit')
i.add('my file.txt', 'hello world! 2')
i.commit('my second commit')
i.add('my file.txt', 'hello world! 3')
i.commit('my third commit')
huh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment