Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>On Linux</h1> <p>on most distributions, git completion script is installed into <code>/etc/bash_completion.d/</code> (or <code>/usr/share/bash-completion/completions/git</code>) when you install git, no need to go to github. You just need to use it - add this line to your <code>.bashrc</code>:</p> <pre class="lang-bash prettyprint-override"><code>source /etc/bash_completion.d/git # or source /usr/share/bash-completion/completions/git </code></pre> <p>In some versions of Ubuntu, git autocomplete may be broken by default, reinstalling by running this command should fix it:</p> <pre class="lang-bash prettyprint-override"><code>sudo apt-get install git-core bash-completion </code></pre> <h1>On Mac</h1> <p>You can install git completion using Homebrew or MacPorts.</p> <h3>Homebrew</h3> <p>if <code>$BASH_VERSION</code> > 3: <code>brew install bash-completion@2</code> (updated version)</p> <p>add to <code>.bash_profile</code>: </p> <pre class="lang-bash prettyprint-override"><code> if [ -f /usr/local/share/bash-completion/bash_completion ]; then . /usr/local/share/bash-completion/bash_completion fi </code></pre> <p>For older versions of bash: <code>brew install bash-completion</code></p> <p>add to <code>.bash_profile</code>:</p> <pre class="lang-bash prettyprint-override"><code>[ -f /usr/local/etc/bash_completion ] &amp;&amp; . /usr/local/etc/bash_completion </code></pre> <h3>MacPorts</h3> <p><code>sudo port install git +bash_completion</code></p> <p>then add this to your <code>.bash_profile</code>:</p> <pre class="lang-bash prettyprint-override"><code>if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion fi </code></pre> <p>more info in this guide: <a href="https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion" rel="noreferrer">Install Bash git completion</a></p> <p>Note that in all cases you need to create a new shell (open a new terminal tab/window) for changes to take effect.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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