Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: SungHyun Nam <goweol@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: cannot remove remote branch name
Date: Mon, 04 Jan 2010 18:18:29 -0800	[thread overview]
Message-ID: <7vskal9tvu.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <hhu694$3v9$1@ger.gmane.org> (SungHyun Nam's message of "Tue\, 05 Jan 2010 10\:57\:18 +0900")

SungHyun Nam <goweol@gmail.com> writes:

> How I can remove remote branch name if it already removed
> in remote side?
>
> $ git branch -a
> * master
>   remotes/origin/HEAD -> origin/master
>   remotes/origin/master
>   remotes/origin/test
> $ git branch -D -r test
> error: remote branch 'test' not found.
> $ git branch -D -r remotes/origin/test
> error: remote branch 'remotes/origin/test' not found.
> $ git branch -D remotes/origin/test
> error: branch 'remotes/origin/test' not found.

Hmm, you tried "test" and then "remotes/origin/test"?

The way I would have guessed what to give the command is:

 1. "branch -D -r test" wouldn't make sense, as git wouldn't know 'test'
    of which remote I am trying to remove;

 2. "-r" already tells git that I am talking about remote, so perhaps
    "branch -D -r origin/test" would work without me saying "remotes/".

"git branch -[dD]" doesn't go over the network, so it doesn't matter if it
is already removed on the remote side or not.

      parent reply	other threads:[~2010-01-05  2:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05  1:57 cannot remove remote branch name SungHyun Nam
2010-01-05  1:59 ` Erik Faye-Lund
2010-01-05  2:18 ` Junio C Hamano [this message]

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=7vskal9tvu.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=goweol@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox