Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git co-upstream-pr command (#726)
* Add git co-upstream-pr When reviewing Pull Requests from open source projects, it's handy to have a way to just pass the PR number and the local branch name. With this new command, to fetch a PR from an upstream remote repo, we just need the PR number and the name of the local branch: $ co-upstream-pr 001 test_generator_pr git will checkout the upstream PR in the local test_generator_pr branch. If there is no upstream remote set, we get a nice message guiding users to set it first. Co-authored-by: Mina Slater <[email protected]> * Use heredoc to send output into cat instead of using echo and multi-line quotes * Subcommand, not alias * Fail gracefully and exit if PR number or local branch name are not provided Co-authored-by: Mike Burns <[email protected]> --------- Co-authored-by: Mina Slater <[email protected]> Co-authored-by: Mike Burns <[email protected]>
- Loading branch information