undo delete of remote-tracking branch

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

undo delete of remote-tracking branch

From: Leonardo Boiko <hidden>
Date: 2016-06-15 22:48:03

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

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:48:03

Leonardo Boiko [off-list ref] 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

From: Leonardo Boiko <hidden>
Date: 2016-06-15 22:48:03

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help