Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>from git/contrib/git-subtree: </p> <blockquote> <p>HOW TO INSTALL git-subtree<br> ==========================</p> <p>First, build from the top source directory.</p> <p>Then, in contrib/subtree, run:</p> <pre><code> make make install make install-doc </code></pre> <p>If you used configure to do the main build the git-subtree build will pick up those settings. If not, you will likely have to provide a value for prefix:</p> <pre><code> make prefix=&lt;some dir&gt; make prefix=&lt;some dir&gt; install make prefix=&lt;some dir&gt; install-doc </code></pre> <p>To run tests first copy git-subtree to the main build area so the newly-built git can find it:</p> <pre><code> cp git-subtree ../.. </code></pre> <p>Then:</p> <pre><code> make test </code></pre> </blockquote> <p>I just verified that this works:</p> <ol> <li>downloaded source via existing git</li> <li><p>installed build deps</p> <pre><code>$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev </code></pre></li> <li><p>check out the latest release branch and build</p> <pre><code>$ git co v1.7.11.3 $ make prefix=/usr/local all $ sudo make prefix=/usr/local install </code></pre></li> <li><p>build and install contrib/subtree</p> <pre><code>$ cd contrib/subtree $ make $ make install $ make install-doc </code></pre></li> <li><p>verify it all works</p> <pre><code>/usr/local/bin/git [todd@montreal-01 subtree ((v1.7.11.3))]$ git --version git version 1.7.11.3 </code></pre></li> </ol> <p>Check, we have the latest git.</p> <pre><code>[todd@montreal-01 subtree ((v1.7.11.3))]$ git subtree usage: git subtree add --prefix=&lt;prefix&gt; &lt;commit&gt; or: git subtree merge --prefix=&lt;prefix&gt; &lt;commit&gt; or: git subtree pull --prefix=&lt;prefix&gt; &lt;repository&gt; &lt;refspec...&gt; or: git subtree push --prefix=&lt;prefix&gt; &lt;repository&gt; &lt;refspec...&gt; or: git subtree split --prefix=&lt;prefix&gt; &lt;commit...&gt; -h, --help show the help -q quiet -d show debug messages -P, --prefix ... the name of the subdir to split out -m, --message ... use the given message as the commit message for the merge commit options for 'split' --annotate ... add a prefix to commit message of new commits -b, --branch ... create a new branch from the split subtree --ignore-joins ignore prior --rejoin commits --onto ... try connecting new tree to an existing one --rejoin merge the new branch back into HEAD options for 'add', 'merge', 'pull' and 'push' --squash merge subtree changes as a single commit </code></pre> <p>Check, we have subtree working.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload