Re: undo delete of remote-tracking branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Leonardo Boiko <leoboiko@xxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]