0.0
No commit activity in last 3 years
No release in over 3 years
Git command to evenly checkout local/remote branches and source/fork pull requests by URL (with Hub)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

git-pcheckout

Gem Version Code Climate Coverage Build Status

Git command to evenly checkout local/remote branches and source/fork pull requests by URL (with Hub)

Installation

Hub is required for checking out pull requests.

$ brew install hub
$ gem install git-pcheckout

Usage

$ git pcheckout 123-myfeature
$ git pcheckout https://github.com/user/repo/pull/123

What it does

  1. If specified branch-name exists locally:

    $ git checkout branch-name $ git pull origin branch-name

  2. If specified branch-name not exist locally:

    $ git fetch $ git checkout --track origin/branch-name

  3. If pull request URL specified(from fork):

  • pulls fork branch with Hub
  1. If pull request URL specified(from source repo):
  • treats it as if just a branch_name was specified (goto 1)

Contributing

  1. Fork it ( http://github.com/vrybas/git-pcheckout/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request