Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can delete the remote-tracking branch using</p> <pre><code>git branch -d -r origin/&lt;remote branch name&gt; </code></pre> <p>as VonC mentions above. However, if you keep your local copy of the branch, <code>git push</code> <strong>will still try to push that branch</strong> (which could give you a non-fast-forward error <a href="https://stackoverflow.com/questions/3046436/how-do-you-stop-tracking-a-remote-branch-in-git#comment-13738106">as it did for ruffin</a>). This is because the config <code>push.default</code> defaults to <code>matching</code> which means:</p> <blockquote> <p>matching - push all matching branches. All branches having the same name in both ends are considered to be matching. This is the default.</p> </blockquote> <p>(see <a href="http://git-scm.com/docs/git-config" rel="nofollow noreferrer">http://git-scm.com/docs/git-config</a> under <code>push.default</code>)</p> <p>Seeing as this is probably not what you wanted when you deleted the remote-tracking branch, you can set <code>push.default</code> to <code>upstream</code> (or <code>tracking</code> if you have git &lt; 1.7.4.3)</p> <blockquote> <p>upstream - push the current branch to its upstream branch.</p> </blockquote> <p>using</p> <pre><code>git config push.default upstream </code></pre> <p>and git will stop trying to push branches that you have "stopped tracking."</p> <p><strong>Note:</strong> The simpler solution would be to just rename your local branch to something else. That would eliminate some potential for confusion, as well.</p>
    singulars
    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.
    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