{"thread":{"id":"22291","subject":"undo delete of remote-tracking branch","startedAt":"2010-01-19T15:40:03Z","lastAt":"2010-01-19T16:08:04Z","messageCount":3,"participants":["Leonardo Boiko","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"132113","messageId":"87bpgqnlws.wl%leoboiko@ime.usp.br","threadId":"22291","inReplyTo":null,"subject":"undo delete of remote-tracking branch","fromName":"Leonardo Boiko","fromEmail":"leoboiko@ime.usp.br","sentAt":"2010-01-19T15:40:03Z","receivedAt":"2010-01-19T15:40:03Z","isPatch":false,"sender":{"key":"leoboiko@ime.usp.br","avatar":null},"body":"\nHi,\n\nI'm a complete idiot and just typed this:\n\n    git branch -d -r origin/master\n\nIs there a way to undo my act of idiocy?\n\n--\nLeonardo Boiko\n"},{"id":"132115","messageId":"20100119155911.GC23466@spearce.org","threadId":"22291","inReplyTo":"87bpgqnlws.wl%leoboiko@ime.usp.br","subject":"Re: undo delete of remote-tracking branch","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2010-01-19T15:59:11Z","receivedAt":"2010-01-19T15:59:11Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Leonardo Boiko <leoboiko@ime.usp.br> wrote:\n> I'm a complete idiot and just typed this:\n> \n>     git branch -d -r origin/master\n> \n> Is there a way to undo my act of idiocy?\n\ngit fetch origin\n\nWhich will create it again during the fetch cycle.  Unfortunately\nthe reflog for origin/master is gone, so you won't get results for\norigin/master@{4.days.ago}.\n\n-- \nShawn.\n"},{"id":"132116","messageId":"878wbunkm3.wl%leoboiko@ime.usp.br","threadId":"22291","inReplyTo":"20100119155911.GC23466@spearce.org","subject":"Re: undo delete of remote-tracking branch","fromName":"Leonardo Boiko","fromEmail":"leoboiko@ime.usp.br","sentAt":"2010-01-19T16:08:04Z","receivedAt":"2010-01-19T16:08:04Z","isPatch":false,"sender":{"key":"leoboiko@ime.usp.br","avatar":null},"body":"At Tue, 19 Jan 2010 07:59:11 -0800, Shawn O. Pearce wrote:\n> git fetch origin\n\nThanks much, that solved the problem.  Will try to educate myself\nbetter on remote-tracking branches.\n"}]}