threads / discuss / 22291

undo delete of remote-tracking branch

Subject: undo delete of remote-tracking branch

## tl;dr

3 messages between Jan 19, 2010 and Jan 19, 2010.

replies: 2people: 2as markdown or json

Shawn O. Pearce· Jan 19, 2010, 15:59 UTC · re: Leonardo Boiko · lore

Re: undo delete of remote-tracking branch

Leonardo Boiko <leoboiko@ime.usp.br> wrote:
Show 5 quoted lines
> 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.
Leonardo Boiko· Jan 19, 2010, 16:08 UTC · re: Shawn O. Pearce · lore

Re: undo delete of remote-tracking branch

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.

← back to recent threads