计算机

记一次git清理历史危机

# How to Recover Lost Git Branches After a Disastrous `filter-branch` Operation

![Git branches recovery illustration](https://example.com/git-recovery-image.jpg)
*When Git history rewriting goes wrong – but there’s hope!*

Have you ever accidentally nuked all your Git branches with a reckless `git filter-branch` command? Don’t panic! This guide will walk you through 4 proven methods to resurrect your lost branches, even if you thought all hope was lost.

## Why This Happens
The nuclear option:
git filter-branch –force –index-filter “git rm -r –cached –ignore-unmatch ./” –prune-empty –tag-name-filter cat — –all

为openwrt添加上tailscale

我有多个节点的设备,以前使用zertotier实现互联互通,但稳定性不如后来发现的tailscale,网络自由度也数tailscale更高,因此我所有的设备都切换到tailscale网络上来,包括腾讯云、阿里云、华为云、私人服务器、路由器(openwrt)等等,但这些设备里面,就数openwrt中的tailscale最难部署,此文记录当前完美的部署方案。

Scroll to Top