Skip to content

Instantly share code, notes, and snippets.

@MaximumP
Last active August 29, 2015 13:56
Show Gist options
  • Save MaximumP/9033298 to your computer and use it in GitHub Desktop.
Save MaximumP/9033298 to your computer and use it in GitHub Desktop.
Ruby Git How To
gist = Git.clone(Uri, name)
gist = Git.clone('https://gist.github.com/9033298.git', 'checkout/test')
gist.log.each{ |commit|
commit.sha
}
Some other text below
gist.gblob(revision:file).contents
gist.gblob('master:clone a gist').contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment