Skip to content

devenbansod/git-pr-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-pr-local

Script to checkout any PR for local review

Setup

source setup.sh

Usage

git-pr-local <pr-number> [<remote> [<new-local-branch> [-f|--force]]]

Default values

  • remote: origin
  • new-local-branch: pr/<pr-number>

Example:

  • Let's assume origin points to the central repository, which has the issues and PRs tracker
  • You want to locally checkout a PR with ID 2018 to a new local branch named pr-local-checkout-2018
cd <repository_directory>
git-pr-local 2018 origin pr-local-checkout-2018

About

Script to checkout any PR for local review

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages