|
340 | 340 | </ul>
|
341 | 341 | <p class="last">Designed to finish up a local topic/feature branch</p>
|
342 | 342 | </dd>
|
343 |
| -<dt><strong>git-move-commits</strong></dt> |
344 |
| -<dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git <span class="pre">move-commits</span> <span class="pre"><num-commits></span> <span class="pre"><correct-branch></span></tt></p> |
345 |
| -<ul class="simple"> |
346 |
| -<li>Moves the last <tt class="docutils literal"><span class="pre">num-commits</span></tt> commits to <tt class="docutils literal"><span class="pre">correct-branch</span></tt></li> |
347 |
| -<li>If <tt class="docutils literal"><span class="pre">correct-branch</span></tt> doesn't exist, the script creates it</li> |
348 |
| -<li>if <tt class="docutils literal"><span class="pre">correct-branch</span></tt> does exist, the script merges the commits</li> |
349 |
| -</ul> |
350 |
| -<p class="last">If you commit to the wrong branch (especially <tt class="docutils literal">master</tt>), this script |
351 |
| -will fix that for you.</p> |
352 |
| -</dd> |
353 | 343 | <dt><strong>git-pull-branch</strong></dt>
|
354 | 344 | <dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git <span class="pre">pull-branch</span> <branchname></tt></p>
|
355 | 345 | <ul class="simple">
|
|
366 | 356 | <p class="last">A simple shortcut to get a local branch on a server without having to
|
367 | 357 | execute three different commands</p>
|
368 | 358 | </dd>
|
| 359 | +<dt><strong>git-move-commits</strong></dt> |
| 360 | +<dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git <span class="pre">move-commits</span> <span class="pre"><num-commits></span> <span class="pre"><correct-branch></span></tt></p> |
| 361 | +<ul class="simple"> |
| 362 | +<li>Moves the last <tt class="docutils literal"><span class="pre">num-commits</span></tt> commits to <tt class="docutils literal"><span class="pre">correct-branch</span></tt></li> |
| 363 | +<li>If <tt class="docutils literal"><span class="pre">correct-branch</span></tt> doesn't exist, the script creates it</li> |
| 364 | +<li>if <tt class="docutils literal"><span class="pre">correct-branch</span></tt> does exist, the script merges the commits</li> |
| 365 | +</ul> |
| 366 | +<p class="last">If you commit to the wrong branch (especially <tt class="docutils literal">master</tt>), this script |
| 367 | +will fix that for you.</p> |
| 368 | +</dd> |
| 369 | +<dt><strong>git-branch-from</strong></dt> |
| 370 | +<dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git <span class="pre">branch-from</span> <span class="pre"><commit-reference></span> <span class="pre"><new-branch-name></span></tt></p> |
| 371 | +<p class="last">If you made several commits to a branch (especially <tt class="docutils literal">master</tt>), and in retrospect, you really should have been doing that on a new branch, this will create a new branch from the <tt class="docutils literal"><span class="pre">commit-reference</span></tt> and reset current branch to the <tt class="docutils literal"><span class="pre">commit-reference</span></tt>.</p> |
| 372 | +</dd> |
| 373 | +<dt><strong>git-export</strong></dt> |
| 374 | +<dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git export <span class="pre"><commit-reference></span> [<filename>]</tt></p> |
| 375 | +<p class="last">Exports a tar-gzipped archive of the <tt class="docutils literal"><span class="pre">commit-reference</span></tt>. If <tt class="docutils literal"><filename></tt> is omitted, the archive is saved as <tt class="docutils literal"><span class="pre"><commit-reference>.tar.gz</span></tt>.</p> |
| 376 | +</dd> |
369 | 377 | <dt><strong>git-status-u</strong></dt>
|
370 | 378 | <dd><p class="first"><em>Usage:</em> <tt class="docutils literal">git <span class="pre">status-u</span></tt></p>
|
371 | 379 | <ul class="simple">
|
|
0 commit comments