hub-checkout(1)

πŸ’… hub-checkout(1) β€” straight from the hub manual, bestie πŸ’…

✨ NAME ✨

okay so hub-checkout is literally the command that checks out the head of a pull request as a local branch. that's the whole serve. it's giving "your PR, but make it local." πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

the shape is exactly this, no cap:

hub checkout PULLREQ-URL [BRANCH]

PULLREQ-URL is the pull request URL, and [BRANCH] is the optional branch name. periodt. ✨


🌸 EXAMPLES 🌸

here's the iconic example, served fresh:

$ hub checkout https://github.com/jingweno/gh/pull/73
> git fetch origin pull/73/head:jingweno-feature
> git checkout jingweno-feature

that's it. that's the example. ate and left no crumbs. πŸŽ€


πŸŽ€ SEE ALSO πŸŽ€

go bother these other pages too, bestie β€” they're all in the group chat:


made with πŸ’– and zero cap: this page is serving hub version 2.14.2, dated 07 Jan 2024. mwah. 🫢

πŸ“¦ where this page comes from