* cannot remove remote branch name
@ 2010-01-05 1:57 SungHyun Nam
2010-01-05 1:59 ` Erik Faye-Lund
2010-01-05 2:18 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: SungHyun Nam @ 2010-01-05 1:57 UTC (permalink / raw)
To: git
Hello,
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.
The 'remotes/origin/test' was removed in remote side.
Thanks,
namsh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot remove remote branch name
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
1 sibling, 0 replies; 3+ messages in thread
From: Erik Faye-Lund @ 2010-01-05 1:59 UTC (permalink / raw)
To: SungHyun Nam; +Cc: git
On Tue, Jan 5, 2010 at 2:57 AM, SungHyun Nam <goweol@gmail.com> wrote:
> Hello,
>
> 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.
>
> The 'remotes/origin/test' was removed in remote side.
>
$ git remote prune origin
--
Erik "kusma" Faye-Lund
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot remove remote branch name
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
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2010-01-05 2:18 UTC (permalink / raw)
To: SungHyun Nam; +Cc: git
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-05 2:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.