Re: undo delete of remote-tracking branch
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 19, 2010, 15:59 UTC
- Message-ID
- <20100119155911.GC23466@spearce.org>
- In-Reply-To
- <87bpgqnlws.wl%leoboiko@ime.usp.br>
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.