今天早上起来,发现 Github 给我发了一封邮件:

给我看的一愣一愣的,我这几个月没碰过的仓库,怎么就侵权了呢?马上把通知下载下来看了一下,哦,原来是我克隆的sirpdboy/luci-app-NetSpeedTest项目被原作者发现此项目删除了他的版权声明:

https://github.com/sirpdboy/luci-app-netspeedtest/issues/65

我这属实是躺枪了,按照 Github 要求,我需要在七天内删除或修改项目里与之相关的内容并回复邮件。既然如此,我就直接删了吧,以绝后患。

这里用千问给出的方法进行操作,实测可用。我是直接使用的他完整的仓库,放置在luci-app-netspeedtest 目录下,因此我需要删除这个目录。需要注意的是,直接提交删除的commit并不可以,需要移除所有分支和历史记录里的相关内容,因此要使用工具。

  • 克隆仓库

git clone git@github.com:Burgess-T/Burgess-Packages.git
cd Burgess-Packages
  • 安装 git-filter-repo

sudo apt update
sudo apt install -y git-filter-repo python3
  • 清理侵权内容

git filter-repo --path luci-app-netspeedtest --invert-paths --force
  • 强制推送

git push --force --all
git push --force --tags
  • 验证

# 检查所有引用
git log --all --oneline -- "**/luci-app-netspeedtest/**"

# 检查所有对象
git rev-list --objects --all | grep -i luci-app-netspeedtest

# 检查所有 refs
git show-ref | grep -i luci-app-netspeedtest

此时访问仓库页面应当不存在luci-app-netspeedtest 目录了。

  • 发送邮件

Subject: Re: DMCA Takedown Notice - Burgess-Packages

Dear GitHub Support,

I have permanently removed the contested content "luci-app-netspeedtest" 
from repository https://github.com/Burgess-T/Burgess-Packages, including 
all historical commits, using git-filter-repo.

The repository has been force-pushed to GitHub and the content is no longer 
accessible in any commit history.

Please confirm receipt of this response.

Best regards,
Burgess-T

没想到啊,我还能收到侵权书,反思了一下,发现没什么可以反思的,又不是我写的,以后再有侵权再删就是了╮(╯▽╰)╭