Skip to content

Instantly share code, notes, and snippets.

@jeffkreeftmeijer
Last active November 18, 2015 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffkreeftmeijer/cd37a464bded117bfce0 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/cd37a464bded117bfce0 to your computer and use it in GitHub Desktop.

git-run_guide

Generates the README for git-run.

$ git clone git@gist.github.com:cd37a464bded117bfce0.git git-run_guide
$ git clone git@gist.github.com:c4bef77ec0ebf1f2639f.git git-run_guide/examples
$ cd git-run_guide/examples
$ guidedown ../guide.md

git run

git run runs commands in git revisions

Getting started

Install git run through Rubygems:

$ gem install git-run

After installing, you'll have the git run subcommand for git:

$ git run
Usage: git run [options] <revision> <command>
    -h, --help                       Show this message

Time to try it out. Let's say you have passing test:

$ ruby test.rb
.....

You want to know if the test was passing in ealier revision, so you use git run to quickly switch to the revision and run the test:

$ git run ad1211 ruby test.rb
...FF

Now you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment