hub-merge(1)

hub-merge(1) πŸ¦‹βœ¨

okay so bestie, this is the hub-merge(1) page from the hub manual β€” and it’s literally giving β€œmerge a pull request locally” main character energy πŸ’…

✨ NAME ✨

hub-merge β€” merge a pull request locally with a message like the GitHub Merge Button πŸŽ€

🌸 SYNOPSIS 🌸

hub merge PULLREQ-URL

okay so real talk: this creates a local merge commit in the current branch, but it does not actually change the state of the pull request. no cap πŸ’€

but wait β€” the pull request will get auto-closed and marked as "merged" as soon as the newly created merge commit is pushed to the default branch of the remote repository. periodt πŸ”₯

πŸ’– EXAMPLES πŸ’–

$ hub merge https://github.com/jingweno/gh/pull/73
> git fetch origin refs/pull/73/head
> git merge FETCH_HEAD --no-ff -m "Merge pull request #73 from jingweno/feature..."

🫢 SEE ALSO 🫢


and that’s the whole vibe, bestie πŸ’œ this lil page is from hub version 2.14.2, dated 07 Jan 2024, and it’s the hub-merge(1) manual β€” mwah πŸ˜˜πŸŽ€

πŸ“¦ where this page comes from