hub/hub-merge.1.html

116 строки
2.5 KiB
HTML

<!doctype html>
<title>hub-merge(1) - Merge a pull request locally with a message like the GitHub Merge Button.</title>
<meta charset="utf-8">
<style>
body {
margin: 0;
font: 15px/1.4 -apple-system,Segoe UI,Helvetica,Arial,sans-serif;
}
pre, code, var, dt, .man-head, [id="synopsis"] + p {
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;
}
pre, [id="synopsis"] + p {
background: #eee;
padding: 1em 1.5em;
}
[id="synopsis"] + p {
white-space: nowrap;
overflow-x: auto;
}
pre code {
color: inherit;
font-weight: inherit;
}
var::before { content: "<" }
var::after { content: ">" }
a:link, a:hover, a:visited { color: blue }
</style>
<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>
</ol>
</header>
<article>
<h1>Merge a pull request locally with a message like the GitHub Merge Button.</h1>
<h2 id="synopsis">Synopsis</h2>
<p><code>hub merge</code> <var>PULLREQ-URL</var></p>
<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
auto-closed and marked as &quot;merged&quot; as soon as the newly created merge commit is
pushed to the default branch of the remote repository.</p>
<h2 id="examples">Examples</h2>
<pre><code>$ hub merge https://github.com/jingweno/gh/pull/73
&gt; git fetch origin refs/pull/73/head
&gt; git merge FETCH_HEAD --no-ff -m &quot;Merge pull request #73 from jingweno/feature...&quot;
</code></pre>
<h2 id="see-also">See also</h2>
<p><a href="./hub-checkout.1.html">hub-checkout(1)</a>, <a href="./hub.1.html">hub(1)</a>, git-merge(1)</p>
</article>
<footer>
<ol class="man-head">
<li class="tl">hub version 2.14.2</li>
<li class="tc">05 Mar 2020</li>
<li class="tr"></li>
</ol>
</footer>