All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Sixt <J.Sixt@eudaptics.com>
To: git@vger.kernel.org
Subject: How to get rid of tracking branch?
Date: Wed, 14 Feb 2007 14:24:31 +0100	[thread overview]
Message-ID: <45D30D8F.50261DB0@eudaptics.com> (raw)

Call me clueless, but how the heck do I get rid of a tracking remote
branch? I've cloned a repo locally, but in the clone I don't want to
track all the topic branches of the origin. But git branch -d keeps
saying it doesn't find the remote branch:

$ git version
git version 1.5.0
$ git clone mingw-git/ mingw-git2
[... all looks fine ...]
$ cd mingw-git2/
$ git branch -a
* devel
  origin/HEAD
  origin/devel
  origin/master
  origin/origin
  origin/repo-devel
$ git branch -d origin/repo-devel
error: branch 'origin/repo-devel' not found.
$ git branch -d remotes/origin/repo-devel
error: branch 'remotes/origin/repo-devel' not found.
$ git branch -d heads/remotes/origin/repo-devel
error: branch 'heads/remotes/origin/repo-devel' not found.
$ git branch -d refs/heads/remotes/origin/repo-devel
error: branch 'refs/heads/remotes/origin/repo-devel' not found.


How do I delete remote branches? Do I have to

 rm .git/refs/heads/remotes/origin/repo-devel

(I know I have to update the config, too, so that the next pull doesn't
draw the branch in again, but I haven't done that at this point.)

-- Hannes

             reply	other threads:[~2007-02-14 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 13:24 Johannes Sixt [this message]
2007-02-14 13:35 ` How to get rid of tracking branch? Andy Parkins
2007-02-14 17:04   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D30D8F.50261DB0@eudaptics.com \
    --to=j.sixt@eudaptics.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.