Git development
 help / color / mirror / Atom feed
* undo delete of remote-tracking branch
@ 2010-01-19 15:40 Leonardo Boiko
  2010-01-19 15:59 ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Boiko @ 2010-01-19 15:40 UTC (permalink / raw)
  To: git


Hi,

I'm a complete idiot and just typed this:

    git branch -d -r origin/master

Is there a way to undo my act of idiocy?

--
Leonardo Boiko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: undo delete of remote-tracking branch
  2010-01-19 15:40 undo delete of remote-tracking branch Leonardo Boiko
@ 2010-01-19 15:59 ` Shawn O. Pearce
  2010-01-19 16:08   ` Leonardo Boiko
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2010-01-19 15:59 UTC (permalink / raw)
  To: Leonardo Boiko; +Cc: git

Leonardo Boiko <leoboiko@ime.usp.br> wrote:
> I'm a complete idiot and just typed this:
> 
>     git branch -d -r origin/master
> 
> Is there a way to undo my act of idiocy?

git fetch origin

Which will create it again during the fetch cycle.  Unfortunately
the reflog for origin/master is gone, so you won't get results for
origin/master@{4.days.ago}.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: undo delete of remote-tracking branch
  2010-01-19 15:59 ` Shawn O. Pearce
@ 2010-01-19 16:08   ` Leonardo Boiko
  0 siblings, 0 replies; 3+ messages in thread
From: Leonardo Boiko @ 2010-01-19 16:08 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

At Tue, 19 Jan 2010 07:59:11 -0800, Shawn O. Pearce wrote:
> git fetch origin

Thanks much, that solved the problem.  Will try to educate myself
better on remote-tracking branches.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-19 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 15:40 undo delete of remote-tracking branch Leonardo Boiko
2010-01-19 15:59 ` Shawn O. Pearce
2010-01-19 16:08   ` Leonardo Boiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox