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
threads / discuss / 22291
Subject: undo delete of remote-tracking branch
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
Re: undo delete of remote-tracking branch
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.
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.