Command-line utility for checking out GitHub Pull Requests locally
Installation
Make it available on the command line by doing
$ gem install loca
Usage
- Copy a GitHub Pull Request URL to your clipboard, i.e. octocat/Spoon-Knife#4865
- Navigate to the directory where you have that repo checked out
- Check out the PR by running
$ loca https://github.com/octocat/Spoon-Knife/pull/4865
- When you are done testing, clean it up by pressing the up-arrow and appending a
-d
flag
$ loca https://github.com/octocat/Spoon-Knife/pull/4865 -d
Contributing
- Fork it ( https://github.com/[my-github-username]/loca/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request