Create a new branch with the contents of a pull request and switch to it

hub

  • A wrapper for Git that adds commands for working with GitHub-based projects.
    If set up as instructed by `hub alias`, one can use `git` to run `hub` commands.
    More information: <https://hub.github.com>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

hub pr checkout {{pr_number}}

click the source code to copy install hub on any operating system with command-not-found.com