2019-01-19 04:08:30 +03:00
|
|
|
<!doctype html>
|
|
|
|
<title>hub-merge(1) - Merge a pull request locally with a message like the GitHub Merge Button.</title>
|
|
|
|
<meta charset="utf-8">
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
font: 15px/1.4 -apple-system,Segoe UI,Helvetica,Arial,sans-serif;
|
|
|
|
}
|
2019-02-24 12:55:58 +03:00
|
|
|
pre, code, var, dt, .man-head, [id="synopsis"] + p {
|
2019-01-19 04:08:30 +03:00
|
|
|
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
|
|
|
|
}
|
|
|
|
header, footer {
|
|
|
|
padding: .5em 2em;
|
|
|
|
}
|
|
|
|
.man-head {
|
|
|
|
color: #999;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
float: left;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
header .man-head {
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
.man-head li {
|
|
|
|
width: 33%;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.tl { text-align: left }
|
|
|
|
.tc { text-align: center }
|
|
|
|
.tr { text-align: right; float: right }
|
|
|
|
article {
|
|
|
|
max-width: 110ex;
|
|
|
|
margin: 4em auto 2em;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
code {
|
|
|
|
color: darkslategray;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
var {
|
|
|
|
color: orangered;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
dt {
|
|
|
|
margin: .5em 0;
|
|
|
|
}
|
|
|
|
dd {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2019-02-24 12:55:58 +03:00
|
|
|
pre, [id="synopsis"] + p {
|
2019-01-19 04:08:30 +03:00
|
|
|
background: #eee;
|
|
|
|
padding: 1em 1.5em;
|
|
|
|
}
|
2019-02-24 12:55:58 +03:00
|
|
|
[id="synopsis"] + p {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
2019-01-19 04:08:30 +03:00
|
|
|
pre code {
|
|
|
|
color: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
var::before { content: "<" }
|
|
|
|
var::after { content: ">" }
|
|
|
|
a:link, a:hover, a:visited { color: blue }
|
|
|
|
</style>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<header>
|
|
|
|
<ol class="man-head">
|
|
|
|
<li class="tl">hub-merge(1)</li>
|
|
|
|
<li class="tc">hub manual</li>
|
|
|
|
<li class="tr">hub-merge(1)</li>
|
2018-05-29 18:29:21 +03:00
|
|
|
</ol>
|
2019-01-19 04:08:30 +03:00
|
|
|
</header>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<article>
|
|
|
|
<h1>Merge a pull request locally with a message like the GitHub Merge Button.</h1>
|
|
|
|
|
|
|
|
<h2 id="synopsis">Synopsis</h2>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
|
|
|
<p><code>hub merge</code> <var>PULLREQ-URL</var></p>
|
|
|
|
|
2018-10-31 04:56:26 +03:00
|
|
|
<p>This creates a local merge commit in the current branch, but does not actually
|
|
|
|
change the state of the pull request. However, the pull request will get
|
2019-01-19 04:08:30 +03:00
|
|
|
auto-closed and marked as "merged" as soon as the newly created merge commit is
|
2018-10-31 04:56:26 +03:00
|
|
|
pushed to the default branch of the remote repository.</p>
|
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<h2 id="examples">Examples</h2>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
|
|
|
<pre><code>$ hub merge https://github.com/jingweno/gh/pull/73
|
|
|
|
> git fetch origin refs/pull/73/head
|
2019-01-19 04:08:30 +03:00
|
|
|
> git merge FETCH_HEAD --no-ff -m "Merge pull request #73 from jingweno/feature..."
|
2018-05-29 18:29:21 +03:00
|
|
|
</code></pre>
|
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<h2 id="see-also">See also</h2>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<p><a href="./hub-checkout.1.html">hub-checkout(1)</a>, <a href="./hub.1.html">hub(1)</a>, git-merge(1)</p>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
</article>
|
2018-05-29 18:29:21 +03:00
|
|
|
|
2019-01-19 04:08:30 +03:00
|
|
|
<footer>
|
|
|
|
<ol class="man-head">
|
2020-03-05 20:53:16 +03:00
|
|
|
<li class="tl">hub version 2.14.2</li>
|
|
|
|
<li class="tc">05 Mar 2020</li>
|
2019-01-19 04:08:30 +03:00
|
|
|
<li class="tr"></li>
|
2018-05-29 18:29:21 +03:00
|
|
|
</ol>
|
2019-01-19 04:08:30 +03:00
|
|
|
</footer>
|